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.
I have an image file where I use this module when I upload files. However, sometimes I don't want to upload a new image, but simply use one that is already uploaded to the site. So then it is good to be able to use the Media File Selector widget, that comes with Media module, but when I upload using this module, the file field path doesn't work.
Comments
Comment #1
drurian CreditAttribution: drurian commentedSame here. It doesn't work with media module.
Comment #2
MXTHere's an alternative that works with media module:
https://drupal.org/project/fe_paths
Comment #3
neRok CreditAttribution: neRok commentedClosed #2147339: Not working correctly with latest Media dev as duplicate of this issue.
I haven't tested anything, but the aforementioned issue talked about filefield_paths implementation of
hook_filefield_paths_process_file
. This code is configured to work with Drupal core, hence the lineMedia is different to core, as you are choosing files that are already uploaded, and in that case the image won't fall-into the above code. Media (or a third module on its behalf) may have to implement
hook_filefield_paths_process_file
to get this to work.This is just a brain storm, but I believe it is on the right track. Or, use the fe_paths module if it works.
Comment #4
jstollerI have a file field, using the Media file selector widget, on a field collection, on a node. I've set a file path and file name for the file field, but when I upload an image both are ignored. I'm using:
Comment #5
erwangel CreditAttribution: erwangel commentedYes it would be nice to have compatibility with media module. Same here, File (Field) Paths settings appear inside Media module settings but are ignored (using File (Field) Paths version 7.x-1.0-beta4). But, but, but....
... before closing/saving this comment, I tried the option "retroactive update", and that worked! My pictures were moved to the directory I had defined with File Field Paths as expected.
Comment #6
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedIs this a dupe of https://www.drupal.org/node/1854450
Comment #7
Deciphered CreditAttribution: Deciphered commentedYes, it is.