jspsmartupload - max_allowed_packet 1048576 bytes
Hi there!
i have a problem with jspsmartupload. when i try to upload files i get the following error:
java.lang.IllegalArgumentException: Packet is larger than max_allowed_packet from server configuration of 1048576 bytes
what server configuration is ment by this?
i'm working with tomcat and i don't find any configuration for that.
using setTotalMaxFileSize or setMaxFileSize doesn't change anything.
does anyone have an idea?
[482 byte] By [
wobelix] at [2007-9-26 2:10:05]

Hi,
I am having the same problem. It seems that the MySQL server variable max_allowed_packet should be set to a larger value to allow larger uploads...
It also seems, according to MySQL docs, that you can easily change this from the daemon or client, but I haven't found a way to change it from a Java client...
If anyone has an idea, please let me know...
Thanks,
Tim
Hi,
I am having the same problem. It seems that the MySQL server variable max_allowed_packet should be set to a larger value to allow larger uploads...
It also seems, according to MySQL docs, that you can easily change this from the daemon or client, but I haven't found a way to change it from a Java client...
If anyone has an idea, please let me know...
Thanks,
Tim
Its the MYSQL server config.Find your my.ini (windows) i think its like my.cnf on linux, and add the following line then restart!set-variable=max_allowed_packet=8MNote that 8M equates to a mediumblob, and you may have to look up other values for longblob etc etc