Results 1 to 4 of 4

Thread: MIME type detection in Internet Explorer

  1. #1
    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?

  2. #2
    Join Date
    May 2008
    Posts
    2,389

    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

  3. #3
    Join Date
    Oct 2005
    Posts
    2,393

    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.

  4. #4
    Join Date
    Jan 2008
    Posts
    1,521

    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.

Similar Threads

  1. Mime Type for swf
    By marcman in forum Windows Software
    Replies: 4
    Last Post: 10-02-2012, 05:38 PM
  2. Replies: 1
    Last Post: 16-08-2010, 05:25 PM
  3. Replies: 1
    Last Post: 16-08-2010, 04:44 PM
  4. Change mime type and file extensions through gpo's
    By DANIEL 602 in forum Active Directory
    Replies: 2
    Last Post: 13-10-2009, 06:59 PM
  5. Replies: 4
    Last Post: 19-03-2009, 12:31 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,655,143.49579 seconds with 16 queries