Quote Originally Posted by parisp View Post
Hi there, first of all congrats on IH2 module, this should have been a core since its a must for proper image handling.

I have aproblem with images, my customer who is going to use zen-cart is going to upload 1000s of images and i am 100% sure that he is going to upload images with the same file name. was wondering if there is a quick way to make ih2 or zen-cart rename a new image upload if there is an images with the same name. I have not dound this to be an IH feature and this is very helpfull, also someting else which can be done is to rename image filenames to hold the product name. this is going to be very good for search engines.

Anyway to cut the story short is there a way which i can set IH2 or zen-cart to rename a new image file name upload if there is an image with the same name?
First off, the very nature of electronic filing renders your question of renaming images upon upload moot. Two files with the same name CANNOT occupy the same folder at the same time. It simply is not possible. Anyone that has uploaded images or files has discovered this, as will your customer.

The only way I've ever been able to get around this is to have different image folders for different categories, or whatever. BUT, you have to make absolutely sure that the path to the image for the product or model number is correct for IH2 to pull the correct image (i.e.. images/folder1/picture.jpg, or, images/folder2/picture.jpg, picture.jpg is a different image with same name in 2 different folders)

That is where IH2's brilliance comes in...It will assign a special name to the different images files it "creates" as they are placed in IH2's cache folders.

Now, in order to really be able to try and help you, we need to know WHY the customer will be uploading different images with the same name, and if there is a particular pattern to this, or, different categories, or something different about why the use of multiple images with same name.

I know this didn't help much, it wasn't supposed to. My reply is designed to draw more info from you and hopefully draw the right answers from someone that knows more than me.