I have a filepath set for a content type, so that all files uploaded for that content type should end up in sites/default/files/content-type/. When I attach files during a node creation, they are placed in the correct folder. However, if I later go back and edit that node and upload additional files, they get placed in sites/default/files/. I then have to run a retroactive cleanup every so often to get them back into sites/default/files/content-type/.

Comments

danepowell’s picture

Actually this is very odd... I just edited another node in order to attach more files, and they were placed in the correct folder.

danepowell’s picture

Component: Code » User interface

Ahhh... okay, this is just a bit of a misunderstanding, and a problem with the user interface. When files are first attached, they are uploaded to the root file directory. It's not until you actually submit the node that the file is relocated. Is it possible to immediately place the files in the correct directory or add some sort of alert that the files will be moved upon submitting the node, to avoid this kind of confusion in the future?

danepowell’s picture

Status: Active » Closed (won't fix)

Not really that big of a deal I guess.