I tried to upload 4 different images with the same file name zzz.jpg, but there is a problem with the images preview.
The preview for the 4 different images was the preview of the first uploaded image
Take a look at the attached file to see how renamed images the image module

As you see at the 2nd uploaded image has been renamed as zzz_0.jpg, created images zzz.preview_0.jpg, zzz_0.thumbnail.jpg and zzz_0.preview.jpg which was not the 2nd image preview but the 1st uploaded image.

So the view of image node of 2nd uploaded image display zzz_0. preview.jpg which was the preview of 1st zzz.jpg

A gave look an the image module at
function _image_filename()
But I cant get it what’s going wrong

CommentFileSizeAuthor
images-renaming.png47.35 KBnsyll

Comments

chris_car’s picture

I experience the same problem, but with version 4.7.x from October 2006.

chris_car’s picture

Just found this: http://drupal.org/node/131589

I did not tried the fix yet, but looks promising to me! ;-)

drewish’s picture

Status: Active » Postponed (maintainer needs more info)

kyanos, the question is, is it just the names that are wonky? or is the node displaying the wrong images? if it's just the filenames then it's working properly. if the wrong images are being displayed then it's a bug.

chris_car, i won't be backporting the fix for 4.7.

Hetta’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

marked as a duplicate of http://drupal.org/node/131589 , which is fixed... if it's still a problem in the latest version, please reopen this issue.