[BUG] file input type does not handle the accept filter correctly #81
Unanswered
MarcWeustink
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There are several issues with the accept filter:
<input class="sdpi-item-value" id="select_1" type="file" accept=".jpg">
Expected: a file choose dialog with a filter: supported formats = *.jpg
Result: a file choose dialog with no filter
<input class="sdpi-item-value" id="select_1" type="file" accept=".jpg,.svg">
Expected: a file choose dialog with a filter: supported formats = *.jpg *.svg
Result: a file choose dialog with a filter: supported formats = *.jpg *.jpeg *.jpe *.svg
<input class="sdpi-item-value" id="select_1" type="file" accept=".jpg,.jpeg">
Expected: a file choose dialog with a filter: supported formats = *.jpg *.jpeg
Result: a file choose dialog with a filter: supported formats = *.jpg *.jpeg *.jpe *.jpg *.jpeg *.jpe
<input class="sdpi-item-value" id="select_1" type="file" accept=".jpg,.foo">
Expected: a file choose dialog with a filter: supported formats = *.jpg *.foo
Result: a file choose dialog with a filter: supported formats = *.jpg *.jpeg *.jpe
I ran into this since I wanted to add the ability to select our own custom image format.
Thanks, Marc
OS: Win11
SD version: 6.4.1.19697
Beta Was this translation helpful? Give feedback.
All reactions