vendredi 18 décembre 2015

Issue on delete a file in laravel 5

I'm trying to delete a file in laravel 5 application . My controller code is

public function deleteImages(){
        $image = public_path() . '/uploads/images/'.Input::get('image');
        Storage::Delete($image);
    }

i'm getting an error message like

local.ERROR: exception 'League\Flysystem\FileNotFoundException' with message 'File not found at path: var/www/html/wonders/uploads/images/Copy1Copy1Kuruva-Islands.jpg' in /var/www/html/wonders/vendor/league/flysystem/src/Filesystem.php:381

But the file is really existing and the path is correct. But i'm wondering why it shows such an error.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire