2 Replies Latest reply on Jul 20, 2007 8:40 AM by MMart_WebDev

    MIME Type Check for file upload


      I'm working on a multi-file upload application for a client. I need to check file size and file MIME type as part of the validation process.

      File size check...easy...that's working fine.

      File MIME type, it seemed to be working properly in Firefox but not in Internet Explorer.

      I cannot seem to figure out the best cross-browser method to validate MIME type for files being uploaded.

      I am using CFFILE to upload the files to a temp directory first. I do have the "accept" attribute currently set and am using a <cfcatch type="application"> around the validation code.

      Are there any dependable cross-browser methods (built-in tag or function, custom tag, cfscript, etc) to check file MIME type for files being uploaded through an upload form?

      Thank you for any assistance that can be provided!

      Tony, Freelance Web Developer