Reputation: 1429
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
Upvotes: 0
Views: 635
Reputation: 449395
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 onchange
event.
Upvotes: 1