Skip to content

Associate file extensions and MIME types #83

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions level-2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,43 @@ <h3>
</li>
</ul>
</li>
<li>If the implementation does not support <a>filtering on MIME
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, do we want to do this even if an implementation does support filtering on MIME types?

types</a>:
<ol>
<li>For each <var>criterion</var> in
<var>bucket</var>["<a data-link-for=
"ShareTargetFiles">accept</a>"]:
<ol>
<li>If <var>criterion</var> is
<var>type</var><code>/</code><var>subtype</var> or <var>
type</var><code>/*</code>, and the implementation
associates <var>criterion</var> with one or more file
extensions, append those file extensions to
<var>bucket</var>["<a data-link-for=
"ShareTargetFiles">accept</a>"].
</li>
</ol>
</li>
</ol>
</li>
<li>If the implementation does not support <a>filtering on file
extensions</a>:
<ol>
<li>For each <var>criterion</var> in
<var>bucket</var>["<a data-link-for=
"ShareTargetFiles">accept</a>"]:
<ol>
<li>If <var>criterion</var> is a string whose first
character is a U+002E FULL STOP character (.), and the
implementation associates the file extension
<var>criterion</var> with a MIME type, append that MIME
type to <var>bucket</var>["<a data-link-for=
"ShareTargetFiles">accept</a>"].
</li>
</ol>
</li>
</ol>
</li>
<li>If <var>bucket</var>["<a data-link-for=
"ShareTargetFiles">accept</a>"] is empty, <a data-cite=
"!appmanifest#dfn-issue-a-developer-warning">issue a developer
Expand Down