When I disable client side validation
<add key="ClientValidationEnabled" value="false" />
<add key="UnobtrusiveJavaScriptEnabled" value="false" />
and attempt to upload a file that is approximately 11 MB, which is then assigned to a HttpPostedFileBase member
[ValidateFile]
public HttpPostedFileBase StudentImageFileBase { get; set; }
I am unable to trigger my custom validation code. Upon clicking the submit button, an error message pops up. Although client-side validation works fine, if it is disabled in the user's browser, how can I handle this situation? Shouldn't I be able to still allow uploads of large files and manage them server-side?