I have created a photo upload facility using persists.jpeg, which has worked well so far. But, when I try to upload a 1.13MB jpeg image it uploads the image but throws an error message 'MySQL server has gone away'. I need to be able to upload images up to 2MB so any idea how I solve this?:blush:
Looks like a timeout http://dev.mysql.com/doc/refman/5.0/en/gone-away.html Never used persists before :S What is it your doing with the image? You putting it on the file system or in the database?
Yeah - the image is resized and inserted into the DB. It worked on a 580KB image but just times out on anything larger. I'm not sure if this is something I have done wrong, or a server setting!