Is there any way to open the file explorer setting the filtering options like a desktop application does?, and I don’t want to validate the file after is selected, I want my users to view only valid files throught filtering them before.
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.
No, for web applications there is no way yet (Dec 2009) to set the File Selector filtering. According to the INPUT tag (used by the UploadFile control to render) documentation it should be possible by adding the ‘accept’ attribute and setting the file mime type(s)… so bad that any major browser supports the accept attribute of input tags.
The best workaround is to validate the files on the client and server side.