I use dropzone.js for a nice upload form. I linked the php code to upload the files and i setted addRemoveLinks=true so i have the remove button.
I need an idea how to efectivly delete the filse uploaded with a php code when i hit remove button.
The php is simple to do but i need t know how to relate them. I already tryed using $.post in this function removedfile: function(file) but no succes.
removedfile: function(file) {
$.post("test.php");
var _ref;
return (_ref = file.previewElement) != null ? _ref.parentNode.removeChild(file.previewElement) : void 0;
},