Hi Abu Ghufran,
I'm using the upload file grid. When you delete the entire row, the image is also removed from the folder. But when you click the edit from the toolbar, and press delete to delete the image, only the link is deleted from table and the image file is still in the folder.
Is there anyway to delete the image from the folder when using edit options.
Your kind answer will be highly appreciated.
Best regards,
Azhar
2 Answers
You need to connect on_update event handler, fetch the old path using the passed row ID and remove file from FS.
Your Answer