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

vincetingey’s picture

Check out this module.

It looks to be a solution to your problem

http://drupal.org/project/upload_replace

ericacm’s picture

upload_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.

jay-dee-ess’s picture

Subscribe.

spamator12’s picture

subscribe

jay-dee-ess’s picture

Upload 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?

Deciphered’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

No longer supporting Drupal 6 issues for this module.