I'm using securefile to upload user images to a gallery. Any image uploaded requires approval by someone with the relevant status, and will be deleted if not approved. It's important that rejected images are not stored.
Working on this on localhost at this stage, I've noticed that if I upload an image (using the front-end form) and then delete it (using the admin panel - front-end code to delete the entry if the checker rejects it is yet to come), the image remains in couch/uploads/attachments.
I've also noticed that if an error arises during the upload (this is related to the form I referred to in viewtopic.php?f=4&t=13159), the image still arrives in the attachments folder - and at that stage there is no entry in the admin panel for it. When the error is corrected and the form resubmitted, a second copy appears.
Is this expected behaviour?
My concerns are
Working on this on localhost at this stage, I've noticed that if I upload an image (using the front-end form) and then delete it (using the admin panel - front-end code to delete the entry if the checker rejects it is yet to come), the image remains in couch/uploads/attachments.
I've also noticed that if an error arises during the upload (this is related to the form I referred to in viewtopic.php?f=4&t=13159), the image still arrives in the attachments folder - and at that stage there is no entry in the admin panel for it. When the error is corrected and the form resubmitted, a second copy appears.
Is this expected behaviour?
My concerns are
- that there will be inappropriate images stored on the server (even if very hard/impossible to get to from outside)
- that we'll end up with multiple copies of many files, and a lot of wasted space on the server
- as far as I can see, there's no way to know which of the actual files form part of a record, or are approved, so a manual deletion task isn't going to help