I have an application in which there is a requirement of Uploading csv files.
Everything is working fine. I am uploading files successfully with extension .csv.
Now here is the problem. someone may try to upload exe file by changing its extension to .csv
and upload to server. It is perfectly uploading. Some one suggested me to upload file by using mimetype
. I follow this tutorial.
I am getting mimetype null
for csv files.
So can you please help me how to upload only csv files.
Thanks in Advance