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.
It sure would be swell if this module had the ability to overwrite a previously uploaded file instead of making a duplicate.
Comment | File | Size | Author |
---|---|---|---|
#4 | filefield_paths.module.873842.patch | 2.16 KB | jaydub |
#1 | filefield_paths_overwrite.patch | 1.94 KB | benkant |
Comments
Comment #1
benkant CreditAttribution: benkant commentedI agree. Here's a patch, rolled from 6.x-1.4
It adds a global "replace" setting. Just go to admin/settings/filefield_paths.
Comment #2
acWorks as described. Please commit as I would also like this.
Comment #3
jaydub CreditAttribution: jaydub commentedYou might want to re-roll the patch to remove the 1st part of the path so that it can be applied with patch -p0. otherwise someone (like me) who attempts to apply the patch will not succeed. This is especially true for those that attempt to pull in patches to Drush Make makefiles.
Comment #4
jaydub CreditAttribution: jaydub commentedI went ahead and re-rolled against current CVS to address the -pX setting for patch.
Comment #5
crea CreditAttribution: crea commentedSubs
Comment #6
Deciphered CreditAttribution: Deciphered commentedNo longer supporting Drupal 6 issues for this module.