This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Hierdie gesprek is in die argief. Vra asseblief 'n nuwe vraag as jy hulp nodig het.

does FireFox support <input type="file" accept = "file_extension">

more options

The code below (should?) list only the file types listed but when I use FF 32.0.2 it lists ALL Files (*.*) The code is copied from http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_input_accept

<form action="demo_form.asp"> <input type="file" name="pic" accept=".docx, .doc, .pdf"> <input type="submit"> </form>

<!DOCTYPE html> <html> <body> The code below (should?) list only the file types listed but when I use FF 32.0.2 it lists ALL Files (*.*) The code is copied from http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_input_accept <form action="demo_form.asp"> <input type="file" name="pic" accept=".docx, .doc, .pdf"> <input type="submit"> </form> </body> </html>

Gewysig op deur MC-Derek

All Replies (1)

more options

Sorry, this doesn't work at the moment. It's a known issue. Feel free to vote for the report to keep track of any progress, but please don't post comments unless you have technical information to add. See the Bugzilla etiquette page for details.

  • Bug 826185 - Inconsistent <input accept=...> behavior