Hi all,

I have discovered a bug when attaching two files with the same name to the node:

1. I'm attaching two files with the same name to the node (file.jpg)
2. Drupal correctly saves first as file.jpg and second as file_0.jpg
3. inline:file.jpg works great. inline:1 works great
4. inline:file_0.jpg reports "not found"
5. inline:2 transforms to the inline:file.jpg

Looks like it's impossible to display the second file.

However, having files with the same names in two separate nodes works fine.

Comments

sun’s picture

Sounds like an edge case. I guess, any other user uploading the same filename twice would probably delete the first one.

sun’s picture

Version: 5.x-1.x-dev » 6.x-2.x-dev