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.
On a drupal 7 system, I am using the modules "File (Field) Paths" and "FileField Sources".
For a node-type "event", I have set the image upload path to "event_images/[node:nid]".
If "FileField Sources" is deactivated, all uploaded images are correctly stored in the path event_images/-nid-. For example /event_images/25847/sampleimage.jpg.
If I activate "FileField Sources", all uploaded images (through filefield sources) are stored in /event_images. (The nid folder is not used).
Is this a problem with my settings or a general problem with "File (Field) Paths" and "FileField Sources"?
Comments
Comment #1
Phoenix2020 CreditAttribution: Phoenix2020 commentedI have the same problem:
FileField Sources does not respect the paths that were entered through File (Field) Paths.
All tokens - like the date, uid or nid - are cut off by FileField Sources:
Correct Path: .../files/images_a/[current-user:uid]
Used Path: .../files/images_a/
Comment #2
Josh-7785 CreditAttribution: Josh-7785 commentedThe problem is another one:
* FileField Sources does not use the path from File (Field) Paths
* Instead it uses the path that was chosen for the regular drupal image upload field. And that setting is hidden once File (Field) Paths is used
Comment #3
skt CreditAttribution: skt commentedI had this issue (described in full here). Appears to be filed as a bug report in File (Field) Paths: https://drupal.org/node/2009626
Comment #4
el1_1el CreditAttribution: el1_1el commentedThis issue popped up for me after upgrading from File (Field) Paths 7.x-1.0-beta3+4-dev to beta4. I use a remote file in file attach and save the file to a directory named after the og group node title (hence the paths mod). I did not have the issue with paths beta3+4-dev and File Field Sources 7.x-1.8 or 7.x-1.7....so for me at least the issue lies with Paths. Hope that's helpful
Comment #5
Deciphered CreditAttribution: Deciphered commentedCan confirm this issue no longer exists.