I am using jQuery Uploadify to upload a file directly to S3. Everything works so far.
What I need now is to validate the file via JS. To make sure that all characters are ASCII compatible.
How can this be done?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The printable ASCII characters start at
0x20(space) to0x7E(~). The RegExp to match this range is:[\x20-\x7E].So, the final code: