MIME type couldn't be detected

See all posts See thread Reply

Re: MIME type couldn't be detected new!
by Chaman, 15 years, 10 months ago
I realise the allowed mime types should probably be written like this instead:

$handle->allowed = array('\012- application/msword',
'application/x-mspublisher','012- application/msword'');

This has the side effect of stopping say pdf files from being downloaded correctly....Reply
Re: MIME type couldn't be detected new!
by colin, 15 years, 10 months ago
Yes, you have to provide a list of MIME types, in an array.

Is it working now?Reply
Re: MIME type couldn't be detected new!
by Chaman, 15 years, 10 months ago
I think it has worked. It seemed to work for me using FF2, but someone else using IE6 was still having problems - that could be some caching issue though....

In the end (time was against me) I resorted to testing the mime type variable and if it was empty then I just display a direct link to the file with instructions to right-click and save as....Reply