View Full Version : Can you upload photos in a .zip
January 10th, 2006, 12:20 PM
Hi there when you create an album and the go to upload your photos instead of adding them one by one can a user select a .zip with all there photos in and upload that way.
January 10th, 2006, 01:13 PM
Or how can registered users bulk upload pics from the pc :D
January 10th, 2006, 01:29 PM
You can upload a zipfile of images which can be extracted and process if this option in Admin Options is set to yes
Do you want to allow ZIP uploads?
Registered Users can do bulkuploads if you give them an ftp account limited to there upload directory. I know of a few admins who do this but overall it is not used alot.
January 10th, 2006, 02:21 PM
Hey Chuck I have enabled the .zip uploads and a friend of mine tried to upload a .zip for with about 60 photo's in it and it got about half way through and the screen timed out.
They got the page can not be displayed in IE.
Any ideas why?
January 10th, 2006, 02:57 PM
Okay I beleive your issue is one of PHP setting restrictions.
Please note you are still bound by your php settings in Photopost so if you max upload size is 2mb in phpinfo for PHP then I would suggest you do this.
Go to Admin => Edit Usergroups and place in maxfilesize for everyone 2048. That way if someone tries to upload a filesize thats too big they should get an error although PHP may still dump out a white screen if they try but on the upload page it will specify there max upload size
Your only other recourse would be to edit your php.ini if you have access and increase the maximum allowable filesize in php.
January 10th, 2006, 03:56 PM
Hey chuck I have checked the phpinfo within photopost admin panel and I found this
upload_max_filesize 20M 20M
Is this what the maximum file upload is in my php.ini
January 10th, 2006, 04:31 PM
Okay that good to know ;)
I guess the operative word here is how big was his zip file?
You can also try if it is a timeout issue this in uploadphoto.php adding the line in bold.
define( 'THIS_SCRIPT', "uploadphoto" );
January 10th, 2006, 04:40 PM
Does that 20M mean 20mb max upload
January 10th, 2006, 04:42 PM
Yes my friend it indeed does mean that
January 10th, 2006, 04:44 PM
I have added this
What does it do?
January 10th, 2006, 06:09 PM
Well what that does my friend is if your say PHP timeout is 30 seconds it sets it for photopost to unlimited so PHP does not timeout during large uploads.
January 11th, 2006, 05:02 PM
Hey chuck I tested out this .zip upload feature today and it still does not work.
I changed the setting in the admin panel for maximum upload size to 20mb I then zipped up 18 mb of photos and it timed out and said theat the page can not be displayed
Any ideas would be great mate as I really want to let my member upload this way :D
January 11th, 2006, 06:41 PM
Your PHP Memory is set to 40M and your using GD2 which uses PHP memory. When the zipfile is uncompressed your definately going to have lots and lots of images uncompressed which is going to trigger a memory issue.
My suggestion would be to limit filesize uploads to a certain size that is going to work well for your site. Try an 8mb upload and see of that zip uncompresses correctly. It's not so much the uploadsize here but when it is unzipped it grows extremely in size. I know most images are compressed tons in a zipfile so I don't even wanna thing of how big the uncompressed files are.
January 12th, 2006, 04:03 AM
Hey chuck it worked on 8mb mate
Whats better to use gd2 or imagemagik?
Also whats the normail file path to imagemaigik in linux?
January 12th, 2006, 11:39 AM
Well gd2 and imagemagick are comparible if your using gd2 2.028 only drawback I see is in processing larger images with gd2 you will see more PHP fail issues because of the fact like stated it does use PHP memory. On alot of installs this PHP memory is 8mb so its good you have yours higher. However as noted trying to process huge files like a 17mb file and uncompress it and handle the images you can see that it will use 40mb of PHP in a snap.
Now the usual paths to mogrify are as such
You can check with your host on exact location if it is present on your system or if you have SSH sign in and do a whereis mogrify.
February 20th, 2006, 07:10 PM
im trying to chance the zip file size upload limit, what file do i have to edit on the backend to do this, do you know the path, thanks
February 20th, 2006, 08:02 PM
Your path is displayed when you view the phpinfo. You want to edit your php.ini file. You do not have access to this file unless your on a VDS OR DEDICATED SERVER.
February 20th, 2006, 08:10 PM
thats the path it shows me. Ok, since i cant get that from my ftp, what should i do to address this, thanks chuck, just bare with me, tryin to get this figured out.
February 20th, 2006, 08:16 PM
As your host if they will increase the max file uploadsize in PHP.
February 20th, 2006, 08:17 PM
ok, i will do so, thanks chuck.
April 3rd, 2006, 11:24 AM
i can't find a phpinfo file.
i want to increase the zip upload size.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.