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... 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... In this example, I would have provided it with the URL of "/local/url/to/photos/" Thanks in advance. ---- |
|

Posts: 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!
Posts: 3236
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?
Posts: 6
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.
Posts: 3236
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
Posts: 6
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?
Posts: 1535
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/
Posts: 6
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.
Posts: 6
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.
Posts: 3236
jefffq, don't forget to check .htaccess files in /gallery/ which might be setting it.
Posts: 6
Lol, that was it! THANK YOU!
You should've said that earlier :P
Posts: 3236
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