A site I'm working on hosts an image library we encourage users to download files from.
We're using the AWS plugin by Delicious Brains to host our static content on a separate server from the main site (url routes to static.domain.com rather than www.domain.com) but how would we be able to add a download link on our site which would automatically trigger the browser to download the file direct from the Amazon instance?
I was hopeful that using the HTML5 download attribute as follows would do the trick:
<a download href="http://static.domain.com/wp-content/uploads/image.jpg">Download Image</a>
but unfortunately this is not supported by IE, Edge or Safari. What would be the correct PHP approach for this so the download request is only processed by S3 and not the main web server?