It seems when you try to upload a image, that happens to have the same filename as another file in the same directory, it gets renamed to something like _#.xxx . Which isn't a big deal or anything, just as long as the filepath is recorded.

The problem is that when the file is inserted into the {files} table, that the filename reflects the outdated original filename, and not the updated -uinque- filename.

# CCK version: 6.x-2.1
# readable, writeable
# private
# ... not sure how to explain.
# n/a

CommentFileSizeAuthor
name_error.jpg34.6 KBeknowlton

Comments

drewish’s picture

Project: ImageField » FileField

It's a filefield issue. I think there's already an issue or two open for this.

dopry’s picture

Priority: Normal » Critical
dopry’s picture

Status: Active » Closed (works as designed)

ahh now that I look more closely... no we do not update the filename when we have to automatically update a path... original filename may be better... but yeah that is by design. I thought the wrong path was being stored in the db... *phew*