JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
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.
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
filename special characters and comma
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.
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.
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.
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.