File Upload

The File Upload Field allows end users to upload files to a Server.

File Storage
Files can be stored in the Database or in the File System. Even if the Form is not set to save the form submissions to the database the uploaded files are still stored in the database it the individual File Upload Field is set to that storage media. Multiple File Upload Fields can store the file in different locations, depending on the setting of the individual field.

File Size*
File size can be controlled by each field on the form, the default is 1000KB. In a form with multiple File Upload Fields, the module uses Transactional Processing to Rollback the entire form submission if any part of the submission fails, which would happen if a file were larger than the size set in the File Upload Field settings.
*The default maximum size for all content uploaded to a server is set to 4096 KB by ASP.NET See Apendix A for instructions on modifying this value.

File Types
Any File Type which the DNN Host has allowed can be uploaded using the File Upload Field. If a file type is not listed, it will be necessary to contact the DNN Host to add that extension to the allowable extensions for the DNN installation.

Downloads
If emailing is enabled for the form a link to the uploaded file will be in the body of the email, also the file will be available for download from the Reports area of the Form Master Edit menu. By default Form Master requires that a user be in an Authorized Edit Role in order to download a file from the server, but Form Master can be set to allow anonymous file downloads if needed.

Validation:
Form Master automatically adds a Regular Expression Validator for the File Upload Field to ensure that the File Type is one of the selected types. A Required Field Validator can be added when the end user must supply a file in order to submit the form.

Add File Upload Presentation


See also