I have a project where I need to store large files within mysql.
I'm aware it's not the most efficient way to do things, but due to security and hosting issues, I need to in this case.
I have a database structure and scripts functioning correctly for uploading and downloading the files (using longblob column for data and varchar for storing content type), but am having problems uploading files of over about 500k. I'm getting the mysql error "MySQL server has gone away". My phi.ini settings allow uploads of 50Mb.
Any ideas? thanks.