Prevent users from uploading large files in web forms
Version:
In the Web Forms for Marketers module, you can prevent users from using the File Upload form field to upload files larger than 10 MB.
To prevent users from uploading large files using the File Upload field:
-
In Visual Studio, create a new processor class specifying the file size limit:
-
Register the new processor in the
Sitecore.Forms.configfile:
After you implement the solution, users cannot upload files larger than 10 MB, and the corresponding message is saved to the log files.