View Full Version : setting a file mask for a file uploading input tag

07-07-2004, 01:21 PM

I was wondering whether it is possible to set a file mask for the file selection dialog window that is opened when the <input type="file"> tag is used.

When opening the file selection dialog, the default should be 'Photo files' (and the mask should include *.bmp, *.jpg, *.jpeg, *.jpe, *.png, *.gif, etc). 'All files (*.*)' should be second choice and there should be no selection choice for HTML

The default mask is:
'All files (*.*)'
'Pictures (*.gif, *.jpg)'
'HTML (*.htm, *.html)'

thanks in advance

07-07-2004, 01:28 PM
I don't think you can. The file types filter differs from browser to browser. In Moz, it's only "All Files".