This is normal as long as you confirm the type on the server side.
Using it on the client will be just a convenience for the end user. How do you define a mime type? If this is just an extension, you can simply check for a valid extension on the client side.
Update
This seems to be just a mapping of extensions to file types, since png , renamed as mp3 is mpeg/audio to code.
So, make sure that you check the type on the server by checking the contents of the file, not its extension.
source share