Reply to Re: MIME type couldn't be detected

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

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important