vb4 is using a global attachment system and it's not writing an already uploaded image to the system again. Instead it's re-using the same row from the filedata table.
Now, when I want to programmatically delete an attachment I would use the 'Attachment' datamanager like this:
$attachdata =& datamanager_init('Attachment', $vbulletin, ERRTYPE_SILENT, 'attachment');
$attachdata->condition = <condition>;
$attachdata->delete(true, false);
My question is: will the Attachment datamanager delete the file from the system AND filedata table too? And will it do this only if it's not being in use somewher else?
Thanks for a clarification.
Now, when I want to programmatically delete an attachment I would use the 'Attachment' datamanager like this:
$attachdata =& datamanager_init('Attachment', $vbulletin, ERRTYPE_SILENT, 'attachment');
$attachdata->condition = <condition>;
$attachdata->delete(true, false);
My question is: will the Attachment datamanager delete the file from the system AND filedata table too? And will it do this only if it's not being in use somewher else?
Thanks for a clarification.
Comment