note 11409 added to Handling file uploads
| From: | rodrei at yahoo dot com | Date: | Tue, 20 Feb 2001 02:12:20 +0000 |
| Subject: | note 11409 added to Handling file uploads | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11263@lists.php.net to get a copy of this message | ||
PHP 4.0.4 f1
I am having problems uploading JPG, GIF and PGN. I also tried to load the binary data into a mysql
table but unfortunatly it has not worked so far.
The variables that are automatically created when uploading a $file have all worked properly exept
the $file_type or $HTTP_POST_FILES['file']['type'].
Please note that this script works fine on the PHP 3.X implementation.
Like, robicd@gmx.net, I notice that PHP is adding "image/gif" or "image/jpg" at
the beginning of the binary data in mysql table as well as in the head of uploaded files.
lyric@php.net responds robicd@gmx.net by saying that it was a bug and the fix is available. How can
I get a hold of this fix?
http://www.php.net/manual/en/features.file-upload.php