note 42447 added to features.file-upload
| From: | "G�ranAxelssson" at rn2 dot php dot net | Date: | Mon, 17 May 2004 08:27:36 +0000 |
| Subject: | note 42447 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-69703@lists.php.net to get a copy of this message | ||
Note, that Opera sends mime type for jpeg as image/jpeg and not as image/pjpeg as IE and Netscape
do.
If you want to check that the uploaded fil is a jpeg file you have to check
if ("image/pjpeg" == $HTTP_POST_FILES["image"]["type"] ||
"image/jpeg" == $HTTP_POST_FILES["image"]["type"])
if you don't want to exclude Opera users.
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42447
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42447&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42447&report=yes
Search -- http://master.php.net/manage/user-notes.php