title: How to get mime type of the file before downloading it?
body: <p>It there any way to identify the mime type of file before downloading it (when only url is known)? 
  For ex., if I would like to show my context menu item only for some particular types. Or, download screen should be changed depending on the download type.</p>