How-to and Troubleshooting
3
Posts
2
Users
0
Reactions
274
Views
Jun 17, 2024 6:41 am
Hello everyone,
I got an issue about an image that a user attached in a comment. When they attach an image, the image will be uploaded to the Media without caring whether that comment is submitted or not. That made me get a lot of images in the Media file without using anything.
How to protect our website from this case?
2 Replies
Jun 17, 2024 7:00 pm
Hi,
Those images will be automatically deleted by the cron job if it's not disabled by code.
There is the following cron job: wpdiscuz_delete_unattached_file.
You can try one of the following plugins to see if it's active or not:
Jun 18, 2024 2:56 am
Hi Asti, thank you for replying me.
Do you know how long is it delete?