What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Can I restrict user to not use comma and special characters in the uploaded filename ?

    Asked by Career_at_BOR on April 05, 2016 at 02:09 PM

    I have a Jotform which lets users to attach files. I want to restrict users to not use special characters like commas, asterik, brackets in the name of the files they attach. For example, a user should not be able to attach a file with name MY_OWN,FILE.pdf or MY_OWN*FILE.pdf

    How can I restrict form users to only use standard alpha numeric characters ? They can obviously use underscore or hypen but using commas, asteriks or brackets really looks bad.

     

    Is their a way ?

     

    Thanks for helping

    Page URL:
    blue-ocean-robotics.com

    filename special characters and comma
  • Profile Image
    JotForm Support

    Answered by david on April 05, 2016 at 02:52 PM

    Most of those characters should not be allowed in file names to begin with:

    For the most part, those characters would break the functionality of the file in many circumstances. 

  • Profile Image

    Answered by Career_at_BOR on April 05, 2016 at 02:56 PM

    well David,

    I am not a Windows user but on Linux Ubuntu, you can name files containing these characters. So it is possible my friend. And I have received people making submissions on my Jotform with all the funny characters. So it is happening in the real world and is making me go nuts. A solution is desperately required.

  • Profile Image
    JotForm Support

    Answered by david on April 05, 2016 at 03:12 PM

    My apologies, I was testing with an image file, not a PDF.  Unfortunately, we only have validation in place to check for valid file types and naming conventions.  Since many characters are indeed acceptable when labeling PDF's those that are acceptable will pass our validation. 

  • Profile Image
    JotForm Support

    Answered by beril on April 06, 2016 at 04:13 AM

    I am sorry to say that it is not possible with Jotform. However, to prevent that issue, you can add a hover text to that file as you see below.

    If you have any question or issues, please do not hesitate contacting us. We will be glad to assist you.