Page 1 of 1

Advice on uploading images on server in one package

Posted: Sat Nov 11, 2006 3:52 pm
by ddragas
Hi all

I need advice of resolving problem with uploading images on server in one package.

My client has shop with 8.000 articles and 8.000 jpeg images. Each picture name is code of article (example 7765456.jpeg where 7765456 is code of article)

Is there a way to upload pictures in one (or more) packages?


My opinion is to make it like this:

- Put pictures in zip file (on local machine)
- Upload and unzip that file on server in one folder
- check each picture name
- move picture on folder with name - code of article
- update path of the picture in database
- unlink uploaded file on server

All suggestions are welcome

regards ddragas

Posted: Sat Nov 11, 2006 3:56 pm
by feyd
your idea sounds roughly okay.

Posted: Sat Nov 11, 2006 4:02 pm
by ddragas
Is there a class or function for unziping file?

Posted: Sat Nov 11, 2006 4:06 pm
by feyd
Look in Code Snippets.

Posted: Sat Nov 11, 2006 4:11 pm
by ddragas
thank you feyd :D :D

always helping people on resolving problems

regards