Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
My default folder for files is /files. When using custom file fields with File (Field) Paths I define new folders such as /files/photos where I want the uploaded files to end up in. This is all working fine when the user selects the file and uploads it in the form. However if the user only selects the file and then submits the form the files end up in the default folder (/files) instead of the one I've specified (/files/photos). I believe this is a bug and shouldn't happen - and is rather annoying as files end up scattered around in the file system.
Comments
Comment #1
Deciphered CreditAttribution: Deciphered commentedI can't confirm this issue, files get moved when uploading them both via the widget or submitting the form (of course they get moved to the correct location after the node is saved).
If you can test via http://simplytest.me/project/filefield_paths you should also see the correct behaviour.
It's possible that something else is interfering.
If you can provide any more information I would be happy to help resolve the issue.
Comment #2
-Mania- CreditAttribution: -Mania- commented> If you can test via http://simplytest.me/project/filefield_paths you should also see the correct behaviour.
I tested it and it appeared to work as intended. Perhaps it was something else conflicting as you said.
Comment #3
Deciphered CreditAttribution: Deciphered commentedI'm going to mark this as closed (cannot reproduce) for the time being, but if you do ever discover the cause of the issue feel free to re-open it. Earlier the better as I'm in the process of making a push for a stable release.
Comment #3.0
Deciphered CreditAttribution: Deciphered commentedModified the text a bit.