Large File Upload

See all posts Reply

Large File Upload new!
by Simon Driscoll, 18 years ago
Hi,

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.

SimonReply
Re: Large File Upload new!
by colin, 18 years ago
Yes, 40MB should be fineReply
Re: Large File Upload new!
by Simon Driscoll, 18 years ago
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.

Thanks
SimonReply
Re: Large File Upload new!
by colin, 18 years ago
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
Re: Large File Upload new!
by Simon Driscoll, 18 years ago
Thanks for your help Colin,

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

SimonReply
Re: Large File Upload new!
by colin, 18 years ago
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