I am using Filesystem API to store images on ftp server. Now I am using following code to retrieve these images.
// Get image from ftp server
$image = Storage::disk('ftp')->get($imagepath);
// Put that image on local storage.
Storage::disk('local')->put($imagename, $image);
// User can download this image.
return response()->download(storage_path().'/app/'.$imagename);
But the problem occurs while placing that image on local storage. It doesn't save correctly like corrupted file.
Any Help
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire