note 76310 deleted from features.file-upload by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 08:00:06 +0000 |
| Subject: | note 76310 deleted from features.file-upload by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-196709@lists.php.net to get a copy of this message | ||
Note Submitter: sogdiev at gmail dot com
----
Hi there.
As far as I understand IE has his own MIME types based on the values stored in a registry. To locate
this "feature" I spent a lot of time and was granted with a perfect headache. :)
In my case I tried to upload a CSV file on a server and abort a script in case if the corresponding
file isn't of a desired type.
And it work fine with Opera and stuck with IE.
So the workaround is that you should add this values in your windows registry (I have windows xp box
and it works fine for me)
[HKEY_CLASSES_ROOT\.csv]
"Content Type"="application/vnd.ms-excel"
@="Excel.CSV"
[HKEY_CLASSES_ROOT\.csv\Excel.CSV]
[HKEY_CLASSES_ROOT\.csv\Excel.CSV\ShellNew]
NB:
add the value "application/vnd.ms-excel" if you plan to open it with excel.