First, you construct a File object:
App::uses('File', 'Utility'); $file = new File(WWW_ROOT .'img/car.jpg',false, 0777); if($file->delete()){ echo "file/image deleted successfully"; }else{ echo "file/image failed to be delete"; }
*** I hope this Post helps to You ***
No comments:
Post a Comment