Copied to clipboard

Flag this post as spam?

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


  • Connie DeCinko 931 posts 1160 karma points
    Oct 01, 2010 @ 21:01
    Connie DeCinko
    0

    Restrict characters for uploaded files

    How can I restrict characters in the file name of files uploaded to the media section?  I'd rather users not be allowed to upload files with spaces or other characters in the file name, or at least have Umbraco strip them out.  I had a user upload a PDF with an ampersand in the name which causes a YSOD when someone tries to download the file.

     

  • Jonas Eriksson 930 posts 1825 karma points
    Oct 03, 2010 @ 04:01
  • Eric Schrepel 161 posts 226 karma points
    Sep 17, 2013 @ 00:01
    Eric Schrepel
    0

    Late reply to this thread, but we're having similar issues using Contour 3/Umbraco 6.1.5, where we allow commenters to upload attachments. When those attachments have ampersands in the filenames, it's hard for us to write any code that allows us to link directly to those files again. Short of some sort of workflow after the form is processed to both alter the SQL database entry plus change the stored filename, would love an easier way to deal with this problem.

Please Sign in or register to post replies

Write your reply to:

Draft