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 "FileField Sources" and "File (Field) Paths".
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
eott CreditAttribution: eott commentedThanks, MJH! I thought it was just filefield_paths not working, but once I saw your post, I disabled filefield_sources, and suddenly filefield_paths started to work. Drupal 7.14, with File (Field) Paths 7.x-1.0-beta3 and File Field Sources (filefield_sources) 7.x-1.7. I am going to try testing with some different versions. So, I've noticed this too.
Comment #2
aanjaneyam CreditAttribution: aanjaneyam commentedDuplicate of #1819234: "File (Field) Paths" and "FileField Sources"