note 10617 added to Handling file uploads
| From: | junk at markdonline dot com | Date: | Fri, 12 Jan 2001 17:28:06 +0000 |
| Subject: | note 10617 added to Handling file uploads | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9717@lists.php.net to get a copy of this message | ||
weird, in php 3.0.14 (maybe others) $userfile_type returns image/pjpeg instead of image/jpeg. I was
tring to parse the extention only out of this string so I needed to add:
$userfile_type = ($userfile_type == "image/pjpeg") ? "image/jpeg" :
$userfile_type ;
http://www.php.net/manual/features.file-upload.php