List Info

Thread: Got a packet bigger than 'max_allowed_packet'




Got a packet bigger than 'max_allowed_packet'
user name
2007-10-12 05:15:17
Hello, 

I got this error when i try to upload files bigger than 1Mb:


#1153 - Got a packet bigger than 'max_allowed_packet'... 

by default it shoul be 1Mb ... 

 

But the dialog window shows this message: 

Note: The current maximum allowed upload file size is 16.0
Mb (It takes only the php.ini upload_max_filesize) 

 

This should be fixed... At least the message should take the
min value between php->upload_max_filesize and
mysql->max_allowed_packet settings... 

 

Another solution should be:

-          Take the max_allowed_packet value

-          Split the file (Maybe getFileContents should
return it in an array)

-          Make the first insert of the first part (Ex
$blob[0])

-          And  make the necessary updates to complete the
file

 

What do u think about it? 

 

Bye, Alberto


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.488 / Virus Database: 269.14.7/1062 - Release
Date: 10/10/2007 17.11
 
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )