replace file didn't remove previous one
lussoluca - October 31, 2007 - 01:12
| Project: | UpAPI (as in Upload API) |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | lussoluca |
| Status: | needs review |
Description
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_callbackfunction
