Im trying to make a file input field have the following extensions only “.zip,.rar,.tar,.tar.gz” and i also want to trap event for when file has been selected and dialog has closed. any help
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.
Limiting the file selection to certain extensions can’t be done using the normal browser’s file upload control. You’d have to use a Flash-based uploader like SWFUpload (Features Demo here) or Uploadify for this.
The event of a new file selection will be reflected in the
onchangeevent.