I was wondering if I could get some help.
Im using the Flysystem package in my project.
At the moment, im uploading a file to S3 using the following code
$awss3 = new Flysystem(new AwsS3Adapter($client_details, 'bucket-name'));
$stream = fopen(public_path() . '/upload/' . $filename . '.gz', 'r+');
$awss3->writeStream($filename . '.gz', $stream);
This works perfect.
But i cant figure out how to run it in reverse and download the file.
Any help would be greatly appreciated.
Cheers,