class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
I'm seeing a lot of folkes here with large file upload problems. I'm another one. I get the error "No JPEG read support" when I try and upload files over 1Mb (I have set file_max_size to eqaul 2Mb)
The solution offered seems to be to increase the amount of memory available to PHP.
My host 1and1 give me 40M to play around with. Is this enough?
I am currently experimenting with a 1.5Mb file that is being copied and thumbnailed and moved to a new directory.
I'm no techie, so this script has really wowed me - thanks Colin.
So if the memory is not the problem, what do you think may be causing the "No JPEG read support" error?
I'm going to try the class tonight with no processing other than moving the photo to the correct directory. I'll see if I can work out where it's falling over.
Basically, if it works with a small picture, but not with a large one, it is likely to be a memory problem. In that case, 40MB is not enough for the picture, or for the graphic tasks you ask the class to do.
Otherwise, check your permissions, the /tmp directory, whether you have open_basedir restrictions, etc...Reply
Yes. As on the Drupal page, 40MB should be enough for a 2MB image (you would need something like 12MB for that).
So it looks like your host has an issue with its GD package. Maybe they restrict the amount of memory that can be used by GD so it is not to heavy on their servers, etc... I'm afraid that you will have to talk to them for a solution. Else, change host :/Reply
I'm seeing a lot of folkes here with large file upload problems. I'm another one. I get the error "No JPEG read support" when I try and upload files over 1Mb (I have set file_max_size to eqaul 2Mb)
The solution offered seems to be to increase the amount of memory available to PHP.
My host 1and1 give me 40M to play around with. Is this enough?
I am currently experimenting with a 1.5Mb file that is being copied and thumbnailed and moved to a new directory.
I'm no techie, so this script has really wowed me - thanks Colin.
Simon
I'm going to try the class tonight with no processing other than moving the photo to the correct directory. I'll see if I can work out where it's falling over.
Thanks
Simon
Otherwise, check your permissions, the /tmp directory, whether you have open_basedir restrictions, etc...
After some investigation I think this may be a problem peculiar to my host.
It seems my hosting provider (1and1) may have a problem with its GD toolkit
http://drupal.org/node/73986
Simon
So it looks like your host has an issue with its GD package. Maybe they restrict the amount of memory that can be used by GD so it is not to heavy on their servers, etc... I'm afraid that you will have to talk to them for a solution. Else, change host :/