Needs review
Project:
UpAPI (as in Upload API)
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
31 Oct 2007 at 01:12 UTC
Updated:
31 Oct 2007 at 01:12 UTC
After a file was uploaded for a node, any attempt to replace with another file fails because first files isn't deleted.
Need to add:
if ($op == UPFIELD_OP_PREPARE_DELETED) {
$file->delete = TRUE;
}
in
upapi_callback
function