Deleting an article synchronously deletes an attachment, ly_DelPostUpload

Lao Yang five hundred and two zero
LY_Delete an article and synchronously delete an attachment
Plug in ID: ly_DelPostUpload
Version: 1.0.4
ZBP>=:1.6.0
PHP>=:5.2
File: 13.74KB
Updated: 2022-12-05

When deleting the article page, the pictures and attachments used in the current article page will be deleted at the same time. After deleting the article, the picture attachments used in the article will not be deleted synchronously.

 1. Deleting an article synchronously deleting an attachment - Laoyang plug-in

One problem to be noted here is that the program to change the system upload directory is not supported. If an attachment is used in multiple articles, deleting an article will delete the attachment synchronously. Calling the attachment in other articles means that 404 does not exist.

use LY_UEditorPlus Editor The uploaded article attachment will record the article ID, and it is more thorough to synchronously delete the uploaded attachment within the article. Only all attachments recorded for this article ID will be deleted.


Export Document
Reward the author
Deleting Articles and Synchronously Deleting Attachments. doc
Download and save this article for collection and printing
Export Document