I am using springboot to upload file.
How to detect actual file mimetype after changing file extension?
Ex. if someone change abc.exe to abc.pdf then upload.