File Upload
The File Upload field allows the users to upload a file along with the Form on your website.
In this article, you will find details about the configuration options you have for the File Upload field.
![](https://docs.umbraco.com/~gitbook/image?url=https%3A%2F%2F1470284034-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHN4dErU7ghf8hOdcQpSs%252Fuploads%252Fgit-blob-f00c05c4fc2417360c2cdc21a3c2039b0e0b3661%252Ffileupload-types.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=1a005eec&sv=1)
Predefined allowed File Types
You can choose to specify which files you want to allow the user to upload, when accessing the Form.
To allow only specific files:
Select the File Type checkbox the user should be able to upload.
Click Submit.
We recommend selecting Allow only specified files, to limit malicious code to be uploaded, whenever the user is submitting the Form.
User Defined Allowed File Types
If the list of predefined file types do not include a specific file type, you can add additional ones.
To add new file type:
Type a file extension name in the User defined allowed file types field and click add.
Click Submit.
Server-side file validation
The file upload field type will verify the file contents using the registered set of IFileStreamSecurityValidator
instances.
To read more about this feature, see Server-side file validation in the CMS documentation.
Last updated