Copied to clipboard

Flag this post as spam?

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


  • Ben McKean 260 posts 515 karma points
    May 18, 2015 @ 16:20
    Ben McKean
    0

    Forms - Feature Request for File Upload

    Hi,

    Not sure sure where feature requests should go for Forms?

    Would be good if could add a regular expression for the File Upload field type. This would help to prevent users from submitting harmful files. For example, I have a form where I'd like users to submit only docs or pdfs. From what I can see this isn't currently possible?

  • Ismail Mayat 4511 posts 10059 karma points MVP 2x admin c-trib
    May 18, 2015 @ 16:29
    Ismail Mayat
    1

    I think its in umbracosettings see 

     

        <!-- These file types will not be allowed to be uploaded via the upload control for media and content -->

        <disallowedUploadFiles>ashx,aspx,ascx,config,cshtml,vbhtml,asmx,air,axd</disallowedUploadFiles>

    Could use that but you could end up making it too restrictive?

    Regards

    Ismail

  • Ben McKean 260 posts 515 karma points
    May 18, 2015 @ 16:43
    Ben McKean
    0

    Thanks, Ishmail. I suppose that'd work. Can't see anybody wanting to upload any of the above. Its for a CV uploader.

  • Ismail Mayat 4511 posts 10059 karma points MVP 2x admin c-trib
    May 18, 2015 @ 17:03
    Ismail Mayat
    1

    Ben,

    Have a bit of play with it just make sure nothing un expected is not introduced.

    Regards

     

    Ismail

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies