An odd error with an image upload script.
Posted: Mon Mar 15, 2010 12:33 pm
First of all, apologies if I've posted this in the incorrect place. I wasn't too sure whether it was here or Theory and Design which would be most apt for my problem.
I've created an image upload form which base64 encodes the image, and then stores the base value in a SQL database. The image can then be referenced directly from a PHP script which decodes the base64, and sends the relevant HTTP header.
However, when uploading large files, the script doesn't work.
The database field size is sufficient, and it isn't cutting off the end of the image, it just seems to be failing to insert the row.
The image is being sent via post (obviously) and being encoded in the same script that includes it to the database, so url and http limitations aren't an issue.
Is there any notable limitation that would prevent large images being uploaded? I'm sure I've missed something obvious somewhere.
Thanks for the help ^_^
I've created an image upload form which base64 encodes the image, and then stores the base value in a SQL database. The image can then be referenced directly from a PHP script which decodes the base64, and sends the relevant HTTP header.
However, when uploading large files, the script doesn't work.
The database field size is sufficient, and it isn't cutting off the end of the image, it just seems to be failing to insert the row.
The image is being sent via post (obviously) and being encoded in the same script that includes it to the database, so url and http limitations aren't an issue.
Is there any notable limitation that would prevent large images being uploaded? I'm sure I've missed something obvious somewhere.
Thanks for the help ^_^