Erasing data with uploaded file
Erasing data with uploaded file

Link to test case: https://editor.datatables.net/examples/advanced/upload.html
Description of problem:
I have code like in exaple. When i click delete script is deleting record from main table but from 'files' table not.
How to delete record from 'files' table and file itself too?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
https://editor.datatables.net/manual/php/upload
Search for "deletion of orphaned files" and the "dbClean" method.

Great! Thanks