Please help me to find out the type of the file which is being uploaded. I wanted to distinguish between excel type and csv.
MIMEType returns same for both of thes
A better way without using javax.activation.*:
javax.activation.*
URLConnection.guessContentTypeFromName(f.getAbsolutePath()));