mdn / mdn/browser-compat-data

html.elements.input.type_file - iOS doesn't implement "accept" with filename extensions

Open
#26,043 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

browser:safari_ios data:html info needed p2
Dominant language
JSON
Stars
5.8k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
186

Description

What type of issue is this?

Incorrect support data (example: BrowserX says "86" but support was added in "40")

What information was incorrect, unhelpful, or incomplete?

This page specifies that the "accept" attribute may contain file extensions as file type specifiers. This does not seem to work on iOS.

What browsers does this problem apply to, if applicable?

No response

What did you expect to see?

I expect to see "partial support" instead of "full support" in the Browser compatibility matrix.

Did you test this? If so, how?

Opening up a webpage with an input element and noticing that the files were not filtered.

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

https://caniuse.com/input-file-accept

Do you have anything more you want to share?

No response

MDN URL

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file

MDN metadata
MDN page report details
  • Query: html.elements.input.type_file
  • Report started: 2025-02-24T18:05:23.253Z

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Use the MDN URL and the html.elements.input.type_file query as the entry point, then inspect the compatibility data for the accept attribute and iOS. Verify the reported filename-extension behavior against the existing support notes and update the matrix only if confirmed. Done means the iOS entry accurately reflects partial support.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, ios
Domain
web-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.