Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



MIME type detection in Internet Explorer

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 29-08-2009
Member
 
Join Date: Aug 2009
Posts: 54
MIME type detection in Internet Explorer
  

I am now trying to code to detect the MIME types of a client on his machine. I am assuming that the client must be using Internet Explorer and so the code would be IE specific. What is the best method to know the MIME type of a user having Internet Explorer? Do you know any similar way to obtain this information?

Reply With Quote
  #2  
Old 29-08-2009
Member
 
Join Date: May 2008
Posts: 2,382
Re: MIME type detection in Internet Explorer

The purpose of MIME type detection, or data sniffing, is to determine the MIME type of downloaded content using information from the following four sources:
  • The server-supplied MIME type, if available
  • An examination of the actual contents associated with a downloaded URL
  • The file name associated with the downloaded content (assumed to be derived from the associated URL)
  • Registry settings (file extension/MIME type associations or registered applications) in effect during the download
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #3  
Old 29-08-2009
Member
 
Join Date: Oct 2005
Posts: 2,389
Re: MIME type detection in Internet Explorer

Internet Explorer already have the feature to detect MIME type from file on server sending to browser by using FindMimeFromData method. While uploading files from the client computer to the Web server, IE uses FindMimeFromData to determine a MIME type. FindMimeFromData returns a hard-coded values from its list of Known MIME Types rather than relying on the MIME type value associated with the file extension in the system registry.
Reply With Quote
  #4  
Old 29-08-2009
Member
 
Join Date: Jan 2008
Posts: 1,515
Re: MIME type detection in Internet Explorer

You can even try out Drupal's MimeDetect to detect the MIME type. MimeDetect provides an API for consistent server side mime detection using the PHP FileInfo extension, the UNIX 'file' command, user supplied mime data, or file extension lookups. It is distributed with it's own magic library for use with the PHP FileInfo extension to make mime detection more consistent in different environments.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "MIME type detection in Internet Explorer"
Thread Thread Starter Forum Replies Last Post
Mime Type for swf marcman Windows Software 4 10-02-2012 04:38 PM
Content Type | Mime Type for Office 2010 file format and extension ramsun Tips & Tweaks 1 16-08-2010 05:25 PM
Content Type | Mime Type for Office 2007 file format and extension D_chapple Tips & Tweaks 1 16-08-2010 04:44 PM
Change mime type and file extensions through gpo's DANIEL 602 Active Directory 2 13-10-2009 06:59 PM
Could not find mime type, application/octet-stream, error in linux Venator Operating Systems 4 19-03-2009 12:31 PM


All times are GMT +5.5. The time now is 10:15 AM.