This topic is locked

Delete file when record is deleted - bug

6/11/2010 5:52:57 PM
PHPRunner General questions
M
mid3vil author

I have a site that uses the {$photo_editcontrol}. It works great for deleting an associated file when the record is deleted, BUT

If you edit the record, it just uploads new files and keeps the old files too.
Thus instead of cleaning out the old pictures when updated, it just keeps the old ones in the folder also.
..

J
Jepsen 6/11/2010

I just checked in an application i have made in PHPR 5.2
I am experiencing the same thing. Delete record deletes the file, but deleting the file, deletes the file name, but the file itself remaing in the upload folder.

J
Jane 6/15/2010

Thank you for pointing me to this issue.

We'll add this feature in the next version.