note 76310 added to features.file-upload

From: Date: Tue, 10 Jul 2007 08:19:16 +0000
Subject: note 76310 added to features.file-upload
Groups: php.notes 
Request: Send a blank email to php-notes+get-128356@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 212.154.188.200 ---- Manual Page -- http://www.php.net/manual/en/features.file-upload.php Edit -- https://master.php.net/note/edit/76310 Del: integrated -- https://master.php.net/note/delete/76310/integrated Del: useless -- https://master.php.net/note/delete/76310/useless Del: bad code -- https://master.php.net/note/delete/76310/bad+code Del: spam -- https://master.php.net/note/delete/76310/spam Del: non-english -- https://master.php.net/note/delete/76310/non-english Del: in docs -- https://master.php.net/note/delete/76310/in+docs Del: other reasons-- https://master.php.net/note/delete/76310 Reject -- https://master.php.net/note/reject/76310 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128356) next »