Asp.net – How to display a meaningful error message when the upload file is too big?
I'm trying to limit the size of files that can be uploaded to my page. I found I can accomplish this using RequestFormLimitsAttribute. [RequestFormLimits(MultipartBodyLengthLimit = MaxUploadFileLength)] public class BulkTruckUploadModel : PageModel { // ... } This definitely prevents larger files…