Page 1 of 1

bulk file upload

Posted: Thu Aug 27, 2009 3:12 am
by rubberjohn
Hi,

I need to develop a bulk upload script that can handle 100+ image uploads. Each image will be large, not RAW but not far off.

What do I need to be aware of in terms of server timeouts etc?

The way I plan to implement it is as follows:

1)User selects folder of images.
2)Script checks size of folder and confirms file compatibility.
3)Folder is then zipped
4)Zipped folder is uploaded.
5)Folder is un-zipped and loaded into the gallery

I'm pretty sure all of this is possible. Is this the best solution? Is there anything I need to be aware of regarding this?

Thanks for you help.

Re: bulk file upload

Posted: Thu Aug 27, 2009 3:26 am
by PHPycho
use php zip library

Re: bulk file upload

Posted: Thu Aug 27, 2009 4:45 am
by rubberjohn
nice one, thanks for that I'll look into it.

So do you think that the php/zip solution is the best? http://www.photobox.co.uk uses a java applet to let you navigate your local machine, from there you can select individual images or folders then drag and drop them into an upload box. When the upload button is pressed each image in the folder is then uploaded in turn. I don't think it uses php but im sure something similar is possible with javascript/php. It seems to me that this could take a long time to upload a large number of files.

Maybe I could use something similar but zip the folder before upload...