Closed aniket-singh closed 7 years ago
In the demo example you will find the way.
Will this function get it's new name and delete that file?
function onFilesRemoveCallback($removed_files){ foreach($removed_files as $key=>$value){ $file = '../uploads/' . $value; if(file_exists($file)){ unlink($file); } } return $removed_files; }
I have set this option 'title' => array('auto', 80), This option gives me a file name like HJx9Wcyaego3rDuXY_10zv54kAlFLiGPINjSTCUhK8qtV7RQdpbMnO6fmwBsEZ2.jpg. Now due to this Whenever i click on remove button it sends it original file name as Example.jpg . Because of this I'm unable to delete that file