Problem with attached files with the same name
slavikt - January 15, 2008 - 07:09
| Project: | Inline |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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.

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