title: Identifying file type in Java
body: <p>Please help me to find out the type of the file which is being uploaded. 
  I wanted to distinguish between excel type and csv. </p>
  
  <p>MIMEType returns same for both of these file. Please help.</p>