mdn / mdn/content

Issue with picture mime type + strict camera photo upload limitation

Open
#44,424 3 comments 0 reactions 0 assignees View on GitHub
Content:HTML needs info
Dominant language
Markdown
Stars
11k
Forks
23.2k
Avg merge
2d 9h
Merged PRs (30d)
331

Description

### MDN URL

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

### What specific section or headline is this issue about?

image/*

### What information was incorrect, unhelpful, or incomplete?

Following my recent implementation of an upload field in a web form, I was unable to achieve mime type limitation AND strict camera photo direct upload based on your documentation (image/* never work alone or in combination), I end to tweak the syntax by adding the following value in `accept` attribute `images/*,image/jpeg,image/png,image/webp`. Then I finally get the expected behavior, as usualy the MDN is the way to go, I was asking myself what's going on with these values, and if I've hack the attribute in some way, or if it's a typo issue in your page.

### What did you expect to see?

Answer to the use case I've describe above, and/or correction in your documentation.

### Do you have any supporting links, references, or citations?

_No response_

### Do you have anything more you want to share?

_No response_

### MDN metadata

Page report details

* Folder: `en-us/web/html/reference/elements/input/file`
* MDN URL: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/file
* GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/html/reference/elements/input/file/index.md
* Last commit: https://github.com/mdn/content/commit/3944506d4afeeed774687cf3fd950878c6229bbc
* Document last modified: 2026-06-09T11:58:01.000Z

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.