I would like to know if anyone knows of any way to create a "trigger" in MySQL that deletes a value from the table, delete a file together on the server, for example:
tbl_imagens
whose name is imagem_1001.jpg
; imagem_1001.jpg
value and deletes it in the uploads/imagem_1001.jpg
Note:
- I'm not interested in saving images to the database;
- I'm not interested in deleting with PHP
unlink()
;