Active
Project:
Upload File Replace (for filefield CCK)
Version:
7.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Dec 2011 at 11:32 UTC
Updated:
22 Nov 2016 at 12:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
elijah lynnGood feedback, once we get #1115484: Parameter 1 to upload_replace_file_update() expected to be a reference, value given in module_invoke_all() merged we should look at this.
Comment #2
alexh commentedHi,
this issue was quite serious in our case when we had filenames of this pattern:
item_1.1.pdf
item_2.1.pdf
After updating these files, the resulting filenames of the current revision were the following:
item_2.1_0.pdf (for the previously named item_1.1.pdf !!)
item.1_0.pdf (for the previously named item_2.1.pdf)
The filenames of the original revision were unchanged.
This messed up a lot of files until I realised it and took me some time to correct all filenames.
The suggestion from tobyontour to update the regular expression is good. It fixed the issue for me. Only the second parameter should be $new_file->uri.
I created a patch for it. Looking forward that it gets applied.