Users are having problems removing attachments(images), that are previously attached to postings.
Users either delete the attachments through "settings">"attachment" or have the postings removed. The previously deleted attachments are still available through the "image upload manager", when they access these image attachmenst through "advanced edit" under "manage attachment".
The "image upload manager" does not provide a mean to delete any images. It also said “uploads not utilized within one hour will be deleted”, but that does not happen. We check the cleanup script in the scheduled task, which is enabled. Uploads just stay there undeleted, even though the posting they were attached to are deleted, or they are deleted through "settings">"attachment"
Users either delete the attachments through "settings">"attachment" or have the postings removed. The previously deleted attachments are still available through the "image upload manager", when they access these image attachmenst through "advanced edit" under "manage attachment".
The "image upload manager" does not provide a mean to delete any images. It also said “uploads not utilized within one hour will be deleted”, but that does not happen. We check the cleanup script in the scheduled task, which is enabled. Uploads just stay there undeleted, even though the posting they were attached to are deleted, or they are deleted through "settings">"attachment"
// Orphaned Attachments are removed after one hour
$attachdata =& datamanager_init('Attachment', $vbulletin, ERRTYPE_SILENT, 'attachment');
$attachdata->set_condition("a.contentid = 0 AND a.dateline < " . (TIMENOW - 3600));
$attachdata->delete(true, false);
if ($this->storage == 'fs')
{
require_once(DIR . '/includes/functions_file.php');
foreach ($this->lists['filedataids'] AS $filedataid => $userid)
{
@unlink(fetch_attachment_path($userid, $filedataid));
@unlink(fetch_attachment_path($userid, $filedataid, true));
}
}
$attachdata =& datamanager_init('Attachment', $vbulletin, ERRTYPE_SILENT, 'attachment');
$attachdata->set_condition("a.contentid = 0 AND a.dateline < " . (TIMENOW - 3600));
$attachdata->delete(true, false);
if ($this->storage == 'fs')
{
require_once(DIR . '/includes/functions_file.php');
foreach ($this->lists['filedataids'] AS $filedataid => $userid)
{
@unlink(fetch_attachment_path($userid, $filedataid));
@unlink(fetch_attachment_path($userid, $filedataid, true));
}
}
Comment