note 11409 modified in Handling file uploads by jmcastagnetto

From: Date: Tue, 20 Feb 2001 04:19:12 +0000
Subject: note 11409 modified in Handling file uploads by jmcastagnetto
Groups: php.notes 
Request: Send a blank email to php-notes+get-11280@lists.php.net to get a copy of this message
[Editor's note: latest code is always available from CVS, see cvs.php.net] 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/handling-file-uploads.php

« previous php.notes (#11280) next »