...

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



davidklonski
07-07-2004, 12:21 PM
Hello

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

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum