views:

11

answers:

1

Hi all, 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

+1  A: 

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.

Pekka