Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jay 425 posts 652 karma points
    Jun 30, 2015 @ 15:24
    Jay
    0

    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

  • Casper Andersen 126 posts 508 karma points
    Jul 01, 2015 @ 08:03
    Casper Andersen
    0

    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

    <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

  • Jay 425 posts 652 karma points
    Jul 01, 2015 @ 09:07
    Jay
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft