I have a content type based on Content Profile.

In it I make it possible to upload unlimited number of images.

When creating a new node after a fresh start of the browser everything usually works finee, but if I create another node and the images I upload has the same names the previously created node it is using those thumbnails instead.

Thus, if I upload a picture with the name pic1.jpg for the first node, and then a different pic1.jpg in the second node, the first pic1.jpg is shown for the second node as well.

This only happens when I create a node. After I have saved it and go back to edit the correct thumbnails are showing.

I also use the feature to rename the file name using [title].[extension]. Thus it seems to me that the thumbnails created when first uploading are using the original file name and not the rewritten one, otherwise I assume it should have shown them correct.

This is reproducible every time.

I set the priority as minor as it not affecting the end result, still it is quite annoying though.

Comments

quicksketch’s picture

Thanks for the great report. I think this has been reported once already, but it was nested in some other issue. This makes it so that I'll remember to fix it, shouldn't be a hard problem. The last time I heard of this it was caused by the "_0" suffix being added the second time the file is uploaded, but the thumbnail doesn't include this suffix so it points the first file.

tsvenson’s picture

Glad I could help out.

Just one thing I forgot to mention. I also use "profile_photos/[author-uid]" as path for uploaded images so they are nicely organised. Dunno if that affects anything, but at least you have the whole config for how images are handled for this content type.

quicksketch’s picture

Status: Active » Closed (duplicate)

Oh... shoot. This problem *doesn't* exist with FileField/ImageField by itself. It's caused by FileField Paths and is a problem with node-based paths (such as [author-uid]). See #447794: Same thumnail preview for first two images in unlimited imagefield when editing node.

quicksketch’s picture

Project: ImageField » File (Field) Paths
Version: 6.x-3.0 » 6.x-1.x-dev
Status: Closed (duplicate) » Active

Oh, you reported the other issue too. I'm assuming that this must be a different problem you're describing then. In any case, it doesn't exist when you use a non-node-based path, so I can only point to FileField Paths.

Deciphered’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

No longer supporting Drupal 6 issues for this module.