RESOLVED DUPLICATE of bug 237219238668
Adding ".stl" files to a <input type=file> transforms it into ".bmp"
https://bugs.webkit.org/show_bug.cgi?id=238668
Summary Adding ".stl" files to a <input type=file> transforms it into ".bmp"
Sunny
Reported 2022-04-01 09:55:28 PDT
If a file input has an "accept" attribute with both ".stl" and ".bmp" file extensions (whatever the order): <input type="file" accept=".stl,.bmp"> Then, when selecting a file called "my-file.stl", it shows up as a "tempImageiHA7wr.bmp" instead. - Input to test here: https://dev.sunfox.org/safari-stl/ - STL example file: https://dev.sunfox.org/safari-stl/cults-logo.stl
Attachments
Alexey Proskuryakov
Comment 1 2022-04-06 09:12:41 PDT
Seems like exact match should always win indeed, and we shouldn't be attempting conversion.
Radar WebKit Bug Importer
Comment 2 2022-04-06 09:12:52 PDT
Jens Viebig
Comment 3 2022-05-04 01:19:43 PDT
We also saw this behavior with other combinations for example: <input type="file" accept=".ts,.m2p,.jpg"> <input type="file" accept=".ts,.m2p,image/jpeg"> When adding a .ts or .m2p they will be recognized as temp*.jpg The following "accept" work as expected: <input type="file" accept=".ts,.m2p"> <input type="file" accept=".ts,.m2p,image/*">
Aditya Keerthi
Comment 4 2023-06-23 08:39:05 PDT
*** This bug has been marked as a duplicate of bug 237219 ***
Note You need to log in before you can comment on or make changes to this bug.