I have a php page that uploads files into a mysql table. I need to be able to handle files up to 20MB. Initially, it would only take files up to 1MB, so I upped the global max_allowed_packet to 20MB (The current value shows 20,971,520)
Now, I can upload files up to 2 MB, but no larger.
Before I upped the max_allowed_packet, a file that was too large would cause an error 'mysql server has gone away' and no row would be inserted into the table at all.
Now, when I try to upload a file larger than 2MB it returns no error at all and it DOES insert a row into the table, but the file size is 0. So, the behavior has changed.
Is there another variable setting I need to address? Any idea what is going on here?
Now, I can upload files up to 2 MB, but no larger.
Before I upped the max_allowed_packet, a file that was too large would cause an error 'mysql server has gone away' and no row would be inserted into the table at all.
Now, when I try to upload a file larger than 2MB it returns no error at all and it DOES insert a row into the table, but the file size is 0. So, the behavior has changed.
Is there another variable setting I need to address? Any idea what is going on here?