zip file size limit?

jefffq

Joined: 2005-06-27
Posts: 6
Posted: Tue, 2005-06-28 00:03

I want to upload groups of pictures, using zip files. It works fine until the zip files grow in size to somewhere around 20MB. Then I get this message:

Quote:
Processing status...
No images uploaded!

I would also be happy to use the option to supply the path to a local directory on the server. But it gives me this error message.

Quote:
Fetching Urls...
Could not open url: http:///local/url/to/photos/
Processing status...

In this example, I would have provided it with the URL of "/local/url/to/photos/"

Thanks in advance.

----
The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): www.jefff.ca/gallery/
Gallery version: 1.4.4-pl4
Apache version: 2.0.53
PHP version (don't just say PHP 4, please): 4.3.10-10
Graphics Toolkit: ?
Operating system: Ubuntu Linux
Web browser/version (if applicable): N/A

 
johnH

Joined: 2005-06-15
Posts: 12
Posted: Tue, 2005-06-28 02:12

You need to increase the upload file size in your php.ini file. Or you can also do it in the local gallery .htaccess file -> but that gets rewritten all the time, so best bet might be the php.ini file. But keep in mind, if you do change the size in the php.ini file, that *any* call to php that requires an upload will allow whatever you set the php.ini file limit to!

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Tue, 2005-06-28 04:27

The "URL" should take a path just fine, though its possible your host has disabled that. Can you point it to a REAL url and have it fetch a picture that way?

 
jefffq

Joined: 2005-06-27
Posts: 6
Posted: Tue, 2005-06-28 08:56

johnH: That's what I thought. I changed three things in php.ini to much much larger than required, it still doesn't work. I changed: 'upload_max_filesize' 'post_max_size' and 'memory limit'. I also tried increasing the allowed time for somet things.

When I try to upload a large zip file it doesn't take long before it stops with the error.

fryfrog: I'm not sure exactly what you mean by a REAL url.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Tue, 2005-06-28 09:49

URL: http://domain.com/image.jpg
Path: /var/www/domain.com/image.jpg

jefffq, you made the changes to php.ini... but did you also restart your webserver? You need to force your webserver to re-read those files by stopping and starting it :)

 
jefffq

Joined: 2005-06-27
Posts: 6
Posted: Tue, 2005-06-28 17:15

Yes, I did restart the webserver.

Yes, a URL like that works. With URLs, aren't you supposed to be able to point it to a folder and have it get all of the images from the folder?

 
Jordan_01002

Joined: 2005-02-14
Posts: 1535
Posted: Tue, 2005-06-28 17:26

jefffq, yes, you can, but you can't prefix it with http:// (it's not http, for one thing, and it doesn't want to be routed through the httpd, for the other). Just enter the path without prefix: /path/to/photos/

 
jefffq

Joined: 2005-06-27
Posts: 6
Posted: Tue, 2005-06-28 17:37

That is how I was trying to do the URLs. But when it reports back as failed, it has added "http://" to the front of it.

 
jefffq

Joined: 2005-06-27
Posts: 6
Posted: Tue, 2005-06-28 23:23

It definitely is 20MB that it's limiting it to. I don't know why that is. The settings in php.ini were set to 5MB before I changed them to 500MB.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Wed, 2005-06-29 03:56

jefffq, don't forget to check .htaccess files in /gallery/ which might be setting it.

 
jefffq

Joined: 2005-06-27
Posts: 6
Posted: Wed, 2005-06-29 06:45

Lol, that was it! THANK YOU!

You should've said that earlier :P

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Wed, 2005-06-29 08:11

Shoulda, coulda, woulda :)

I don't think the .htaccess file can set the value HIGHER than what is specified in the php.ini though, so you would have had to change both anyway. You might also consider dropping down to a more "reasonable" value so some malicious user doesn't take advantage of your 500mb post max and fill your server up with crud... who knows who is out there and what they'll do :)