IE, Word documents and Content Types

From: Date: Wed, 03 Jan 2007 20:52:04 +0000
Subject: IE, Word documents and Content Types
Groups: php.general 
Request: Send a blank email to php-general+get-246488@lists.php.net to get a copy of this message
Hi. I have a form where a user can upload different types of documents. A valid file type they will be able to upload is a Word Document. However, when I view the $_FILES 'type' of a word document in Internet Explorer, it says it's type 'application/octet-stream' instead of 'application/msword' or 'application/vnd.ms-word'. It works fine in Firefox and Safari. Any ideas why IE does this and/or how I might be able to get around this? I know of 1 or 2 options for sort of bypassing this, but I'd like to hear from the group to see if there's a better, security-conscious idea. Thanks in advance, ~Philip +------------------------------+ When you least expect it... expect it! +------------------------------+

« previous php.general (#246488) next »