jrbasso/MeioUpload

Delete does not actualy deletes files

fralik opened this issue · 1 comments

I am using latest commit for now (http://github.com/jrbasso/MeioUpload/commit/3645606bf8f0e96e022c086b0b6950b9b6048864). The thing is if one run $this->Model->delete($id), then files are not deleted. They are marked for deletion, but since there is no "afterDelete" method nothing happens.

To fix this, simple add function "afterDelete" with same functionality as "afterSave".

Delete files on delete record. Closed by 37fabc0.