MIME type couldn't be detected

See all posts See thread Reply

Re: MIME type couldn't be detected new!
by colin, 15 years, 10 months ago
Received.

Yes, the files are weird. In fact, the MIME type is returned as \012- application/msword, which is invalid. The error seems to be with the file, as all the MIME detection techniques return the same thing. Maybe MS Publisher saves the files wrongly.

You can add this to your code so that the class accepts this invalid MIME type:
$handle->allowed = array('\012- application/msword');
Reply