How to validate file attachment names
Hi
Below are some bad examples of filenames where users were able to upload their attachments to the FTP location but upon trying to view the attachments, they were not accessible due to having special characters in the filename.
The_Boss_(3).pdf
OneTouch_Jun_09,_2010_(3).PDF
I.B.M..jpg
~OTC1ABI001F.PDF
20100608165548304[1].pdf
Can anyone provide guidance / code on how best to prevent attachments to be uploaded with special characters (~ or . or [ ,etc) before the file extension... prompt the user to rename file during the upload step? I am on 9.0 if that makes a difference...
Below are some bad examples of filenames where users were able to upload their attachments to the FTP location but upon trying to view the attachments, they were not accessible due to having special characters in the filename.
The_Boss_(3).pdf
OneTouch_Jun_09,_2010_(3).PDF
I.B.M..jpg
~OTC1ABI001F.PDF
20100608165548304[1].pdf
Can anyone provide guidance / code on how best to prevent attachments to be uploaded with special characters (~ or . or [ ,etc) before the file extension... prompt the user to rename file during the upload step? I am on 9.0 if that makes a difference...
0