lundi 15 avril 2019

Download a file from cloud (s3) into a local directory

I am working on a new project which is build using Laravel 5.8. I have a s3 cloud bucket where .csv files are stored in zip format. I want them to download and store at my local server i.e somewhere in my project folder, so I can unzip (.csv) them and process further in my code.

I am beginner to laravel and know little about the laravel filesystem. I tried some codes and did not get success.

Storage::disk('s3')->download($file,$fileName, $headers);



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire