When I use a file input on a HTML form, and use files[0].type, I get mimetype (e.g. images/gif) of the file. How does this api determine the mimetype? Is it solely based on file extension?
Asked
Active
Viewed 46 times
0
-
Maybe implementation dependent, but FF seems to check the file name extension only. – Teemu Oct 26 '17 at 11:36
-
Yes it is... If you want to perform a better check yourself you can refer to this [Q/A](https://stackoverflow.com/a/29672957/3702797) – Kaiido Oct 26 '17 at 12:55