Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2004
    Posts
    91
    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

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,048
    Thanks
    0
    Thanked 251 Times in 247 Posts
    I don't think you can. The file types filter differs from browser to browser. In Moz, it's only "All Files".


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •