Streaming Amazon S3 Objects From a Web Server Using Laravel
In my web-application built using laravel 5.1, users can upload some sensitive files that I store in Amazon S3. Later I want users WITH PERMISSION to download this file. Since I want this auth check in place, I cannot download the file using traditional methods by giving them direct link to file in S3. My approach: When user requests a download, my servers download the file locally and then stream to user. Issue: Takes long time because files are too large sometimes. Give the user a pre-signed URL to download directly from S3. URL is only valid for 5 minutes. Issue: If that URL is shared,