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
Seems like exact match should always win indeed, and we shouldn't be attempting conversion.
<rdar://problem/91357479>
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/*">
*** This bug has been marked as a duplicate of bug 237219 ***