Attached is a patch that makes the replace mode user-configurable. The default mode is the way Upload Replace works now. The other mode is "replace" meaning that old files aren't versioned but overwritten.
I wrote this patch to meet a need a client of ours had. They needed to have several nodes referencing the same file but wanted the last uploaded version of a file to overwrite any previous versions and keeping URLs to files consistent. This patch maintains existing file table entries but replaces the file and updates the file size so that several file table entries refer to the same file.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | upload_replace-849244.patch | 6 KB | solipsist |
| upload_replace-configurable-replace-mode.patch | 6 KB | solipsist |
Comments
Comment #1
solipsist commentedFixed a typo in the previous patch.
Comment #2
phjouDrupal 6 has reached end of support. Close this issue.