Hello,
I have written a CMS that allows my customer (a wall tiles vendor) to update his list of products (decorated tiles), then he can enter/modify/delete the products info, as well upload its pictures.
Ok, here is the problem. Each product have two pictures: the regular one that I named with the product code and its thumbnail that I gave the same name but added an underscore char at the beggining.
Then it's like that:
product code: 123456
product picture: 123456.jpg
product thumbnail: _123456.jpg
Currently, my customer need to browse his HD and select the both pictures (main one and thumbnail), and it's too annoying as he have dozens of products to input everyday.
Once I know where these pictures are in his HD and know that its names are the code of produt, I would like to know how to upload'em directly without the needing to browse the files.
Something like:
$prodim = "c:\pictures\" . $prodcode . ".jpg";
$prodthumb = "c:\pictures_" . $prodcode . ".jpg";
Then upload the pictures pointed by the two vars above.
Make sense?
Thanks!!!