SMFHacks.com

SMF Gallery Pro => Support => Feature Requests => Topic started by: dlomneck on November 24, 2007, 02:00:29 am

Title: Bulk Image Upload via archive (zip)
Post by: dlomneck on November 24, 2007, 02:00:29 am
How hard would it be to implement something like the SMF package interface, where you can just upload a .zip file full of pictures and have the site decompress them and process them?  This would be 1000% better than giving 100 users FTP access to upload files to the dir on the server.  And easier for people to use I think.  Would obviously have to follow the size standards on the server and resize automatically if set, just like the individual image upload does.  Shouldn't be that hard to have it loop through them though, read the images in, check size, resize if needed, move to the right dir, then delete the archive.zip when done.

Would such a feature be a reasonable request?  The java method seems outdate, and doesn't follow the resize restrictions, and gives me lots of "Undefined index: browser" errors, AND doesn't work for anybody but admin, so isn't a real solution.  Thanks for your consideration.

David
Title: Re: Bulk Image Upload via archive (zip)
Post by: SMFHacks on November 24, 2007, 08:46:35 pm
Might support it later on. Main issue seems to require a php extension in order to function:
http://www.w3schools.com/php/php_ref_zip.asp
Title: Re: Bulk Image Upload via archive (zip)
Post by: dlomneck on November 26, 2007, 02:11:45 am
Well, I know it would be a great addition.  Especially since the bulk image upload is broken if you have it set to resize the images.  It would really allow you to upload a lot of pictures without having to fill out a ton of upload fields.

David
Title: Re: Bulk Image Upload via archive (zip)
Post by: SMFHacks on November 26, 2007, 08:28:40 pm
Looks easy to add using the zip extension. Next question should it be admin only, or added to the bulk upload form as option to select a zip file.

The main issue I could see happening is the memory limit issue for php. By default php has a 2MB post accept limit which means most users of this function will need to increase there php settings in order to accept large zip files. Also might take a while to excute since php will extract the files from the zip file.
Title: Re: Bulk Image Upload via archive (zip)
Post by: dlomneck on November 27, 2007, 03:17:14 am
Well, even if you are only using it to upload 5 images at a time, it's going to be less work on the user I think then filling out all those fields.  Maybe I'm being selfish with this request.  I know that my host, crystaltech, has their php set to 8mb, but yes, that 2mb is the normal for uploading.  Even at 2megs, if you zip them, that could be 10 or more images you can upload with a single upload form.  As long as you put something for the user to see that says "make sure your zip is under xxx megs", I would be extremely happy with this feature.  And I do think it should be available to anybody who has access to the bulk uploader.

David
Title: Re: Bulk Image Upload via archive (zip)
Post by: Skyview on December 03, 2007, 04:43:38 pm
I would like to see something like this as well. However, I would request that it be setup so that you could specify which member groups have the ability to access and use the feature.
Title: Re: Bulk Image Upload via archive (zip)
Post by: SMFHacks on December 03, 2007, 07:59:20 pm
I would like to see something like this as well. However, I would request that it be setup so that you could specify which member groups have the ability to access and use the feature.
I was planning on just using the bulk upload option permission to decide if they access to it or not.
Title: Re: Bulk Image Upload via archive (zip)
Post by: Skyview on July 09, 2008, 01:51:13 am
The main issue I could see happening is the memory limit issue for php. By default php has a 2MB post accept limit which means most users of this function will need to increase there php settings in order to accept large zip files. Also might take a while to excute since php will extract the files from the zip file.

I'm not sure about most people who use the gallery, but I have my site on a VPS so I can set this to anything I choose. In fact, I think I already had bumped it up quite a bit for a file transfer script I was running.

I would like to see something like this as well. However, I would request that it be setup so that you could specify which member groups have the ability to access and use the feature.
I was planning on just using the bulk upload option permission to decide if they access to it or not.

That would work fine as well. Any plans to still include this?
Title: Re: Bulk Image Upload via archive (zip)
Post by: SMFHacks on July 09, 2008, 07:17:09 am
It is planned I have started work on it requires an extension to be installed in php though.