Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
In Umbraco V7.2.6, how do you limit the File Upload field in Forms to allow for only certain file extension to be uploaded?
Any idea?
Thanks
If you go to your Config directory, there is a file called umbracoSettings.config
in here is a field called <dissalowedUploadFiles> which for me at the moment contains
<dissalowedUploadFiles>
<disallowedUploadFiles>ashx,aspx,ascx,config,cshtml,vbhtml,asmx,air,axd,swf,xml,html,htm,svg,php,htaccess</disallowedUploadFiles>
so here you can set any kind of file extension you do not want on your site
Hi Casper,
That's for the overall Media upload. Do you know if we can just set like only .pdf for Umbraco V7 Forms?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How do you limit the FileUpload field to allow for certain extension upload?
In Umbraco V7.2.6, how do you limit the File Upload field in Forms to allow for only certain file extension to be uploaded?
Any idea?
Thanks
If you go to your Config directory, there is a file called umbracoSettings.config
in here is a field called
<dissalowedUploadFiles>
which for me at the moment containsso here you can set any kind of file extension you do not want on your site
Hi Casper,
That's for the overall Media upload. Do you know if we can just set like only .pdf for Umbraco V7 Forms?
Thanks
is working on a reply...