note 31293 added to function.is-uploaded-file

From: Date: Wed, 16 Apr 2003 15:53:51 +0000
Subject: note 31293 added to function.is-uploaded-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-46694@lists.php.net to get a copy of this message
If you are importing the uploaded file into a BLOB field in a mysql database and you are using LOAD_FILE() sql statement then be aware that mysql checks max-allowed-packet mysql variable. - if the size of the binary file LOAD_FILE is importing is bigger than max-allowed-packet size then it LOAD_FILE will return null. You can specify max-allowed-packet size in the call to mysqld eg: ./bin/safe_mysqld --user=mysql --max-allowed-packet=16M & Full info on this variable is available here: http://www.mysql.com/doc/en/Packet_too_large.html -- http://www.php.net/manual/en/function.is-uploaded-file.php http://master.php.net/manage/user-notes.php?action=edit+31293 http://master.php.net/manage/user-notes.php?action=delete+31293 http://master.php.net/manage/user-notes.php?action=reject+31293

« previous php.notes (#46694) next »