Active
Project:
Upload File Replace (for filefield CCK)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Nov 2013 at 02:44 UTC
Updated:
9 Dec 2016 at 20:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
eevensen commentedHey guys!
Patch #44 in Parameter 1 to upload_replace_file_update() expected to be a reference, value given in module_invoke_all() works well when you save a node manually, but not when you import nodes with the Feeds module (both Feeds 7.x-2.0-alpha8 and 7.x-2.x-dev).
The error messages reported by BrightBold seems to have disappeared, but a file imported to a node (as managed file with the Feeds module) still gets "mydoc_0.doc".
When I edit the same node, delete the file, and re-upload the file to the node manually, the module works as intended.
The reason is, as far as I understand, that the Feeds module uses its own callback function "file_feeds_set_target" and not "hook_file_update".
How can we fix this? Let me know how to help.
Comment #2
mibfire commentedThe error message(Resource is not a file or it is an empty directory) reported by BrightBold has not disappeared! I have got the same message with the latest dev upload file replace.
Comment #3
mibfire commentedI made a patch for this error(Resource is not a file or it is an empty directory).
Comment #4
mibfire commentedThere were a couple of errors, i fixed it.
Comment #5
mibfire commentedshit, a new error, fixed
Comment #6
mibfire commentedneedless isset, removed