This topic is locked

Delete image when deleting associated record

12/17/2016 9:55:31 PM
PHPRunner General questions
lefty author

I have images stored in folder in one of my tables . I use multiupload 1 file so decode/encode JSON, option to store records. I noticed when I delete more than one record at a time it does not delete the image in the folder just the record. It actually changes the image name and remains. I do this on the list page just by selecting all records on the page say about 100 . Select all and delete . I go to folder and not only are they still there , the names are changed to default names as the source code would do without adding values/pairs to the photo name. delete associated record is checked. I am wondering if I have to decode/encode before delete also as there is a timestamp involved with the image name which I can't see would work. PHPRUNNER 8.0. build 24793
This is what the manual says - "Use the Delete file when associated record is deleted option to make sure that a file will be deleted when associated record is deleted from the database. This option is global and if enabled is applied to all tables and fields."
Any Ideas?