Current location: Hot Scripts Forums » General Web Coding » JavaScript » setting a file mask for a file uploading input tag


setting a file mask for a file uploading input tag

Reply
  #1 (permalink)  
Old 07-07-04, 06:22 AM
davidklonski davidklonski is offline
Newbie Coder
 
Join Date: Apr 2004
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
setting a file mask for a file uploading input tag

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
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
file uploading jaishalg PHP 1 06-22-04 11:54 AM
How to prepopulate file input box? cgott42 PHP 0 06-09-04 02:22 AM
Upload file to table so ONLY files tied to primary key are displayed in record? grafixDummy PHP 4 12-20-03 04:28 PM


All times are GMT -5. The time now is 10:25 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.