bulk file upload

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rubberjohn
Forum Contributor
Posts: 193
Joined: Fri Feb 25, 2005 4:03 am

bulk file upload

Post 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.
User avatar
PHPycho
Forum Contributor
Posts: 336
Joined: Fri Jan 06, 2006 12:37 pm

Re: bulk file upload

Post by PHPycho »

use php zip library
rubberjohn
Forum Contributor
Posts: 193
Joined: Fri Feb 25, 2005 4:03 am

Re: bulk file upload

Post 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...
Post Reply