Amazon s3 file download question
Posted: Fri Jun 11, 2010 3:35 am
Hi,
I currently have links to amazon s3 files which expire after a certain amount of time, after which s3 returns a not so nice looking xml response showing the error and various details.
What I would like to do is provide a link to a php script which would then in turn go to the s3 link and if all is ok, proxy the response back to the user somehow so they can continue to download but if the reponse is an error message then I would like to supply a nicer error screen in php in response.
An example link is http://mytestbucket.s3.amazonaws.com/0f ... EiKP1rs%3D
Is this trivial or straighforward?
Gavin
I currently have links to amazon s3 files which expire after a certain amount of time, after which s3 returns a not so nice looking xml response showing the error and various details.
What I would like to do is provide a link to a php script which would then in turn go to the s3 link and if all is ok, proxy the response back to the user somehow so they can continue to download but if the reponse is an error message then I would like to supply a nicer error screen in php in response.
An example link is http://mytestbucket.s3.amazonaws.com/0f ... EiKP1rs%3D
Is this trivial or straighforward?
Gavin