mardi 11 janvier 2022

Laravel storage FTP driver file exists not working

I have an FTP storage drive defined in my filesystem.php file ... Putting and getting files work perfectly, but when I try and see if a file exists on the remote system, it always returns it doesnt exist even though the file is there

if (Storage::disk('ftp')->exists('/folder/filename.jpg')) {
    echo 'File exists';
} else {
    echo 'File doesnt exist';
}

Is there something wrong with the way i am structuring this?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire