Skip to content

Commit

Permalink
fix(demo): allow opening PSD files on Windows
Browse files Browse the repository at this point in the history
Due to inconsistencies in how browsers across different platforms handle
the `accept` field of a file input, we need to use file extensions,
rather than MIME types, to allow opening PSD files.
  • Loading branch information
pastelmind committed Jan 28, 2022
1 parent 9bc26f9 commit 9234673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/browser/statics/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ <h2>Features</h2>
<section>
<div class="section-content">
<h2>Select psd/psb file</h2>
<input type="file" accept="image/vnd.adobe.photoshop,.psb" />
<input type="file" accept=".psd,.psb" />
<h2>Results</h2>
<p>
After the file is selected, the PSD file parsing result is shown
Expand Down

0 comments on commit 9234673

Please sign in to comment.