By default it can select all type of files,how to restrict it so that it can only select .pdf files?
By default it can select all type of files,how to restrict it so that
Share
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.
You can use the accept attribute on your form to suggest to the browser to restrict certain types. However, you’ll want to re-validate in your server-side code to make sure. Never trust what the client sends you.