I need to force a double file extension (e.g., .pdf.pdf) to overcome an Outlook (grrr, argh) issue that breaks email attachment links.
FileField Paths works fine with tokens on the first upload (e.g., examplename_exampletoken.pdf.pdf) but successive uploads of a particular file end up with the version inserted in a way that makes sense but foils my hack (e.g, examplename_exampletoken.pdf_0.pdf).
I thought the Active Updating option in FileField Paths would do the trick by keeping the desired name on the latest file, but when enabled it generates errors on my install ("The selected file /var/www/vhosts/example.com/httpsdocs could not be copied".).
I've looked around in FileField Paths and FileField but I can't figure out how to get around this - any suggestions would be much appreciated.
Comments
Comment #1
vincetingey CreditAttribution: vincetingey commentedCheck out this module.
It looks to be a solution to your problem
http://drupal.org/project/upload_replace
Comment #2
ericacm CreditAttribution: ericacm commentedupload_replace is not compatible with filefield_paths (I just ran into this issue). upload_replace renames at file upload time. filefield_paths moves files at node save time. It would be great if filefield_paths could support replacing instead of renaming files.
This should be turned into a feature request.
Comment #3
jay-dee-ess CreditAttribution: jay-dee-ess commentedSubscribe.
Comment #4
spamator12 CreditAttribution: spamator12 commentedsubscribe
Comment #5
jay-dee-ess CreditAttribution: jay-dee-ess commentedUpload Replace works if/when you re-save the node. So if you have a file named file_name_0, re-saving will make it file_name. Not very usable, but there it is.
I was hoping to use Rules to re-save on update, but it doesn't seem work. Anyone want to try their luck with it?
Comment #6
Deciphered CreditAttribution: Deciphered commentedNo longer supporting Drupal 6 issues for this module.