request file from amazon S3 and offer this file as download
Dear community,
what's the best way to offer a download to a user for a file stored on amazon S3?
I'm using the laravel storage driver, uploading files to my S3 bucket is very easy, now I would like to offer users the possibility to download these files. After I saw in the doc I only get the content of the file I'm searching for a good way to offer a download from this blank content.
I have no idea how to do so using the default laravel download return.
Here's my part of storing the files, hope this helps to understand my problem:
You can give your Content-Type as desired and Content-Disposition as 'attachment' because your files are coming from S3 and you have to download it as an attachment.