Amazon s3 file download question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gavdbyrne
Forum Newbie
Posts: 1
Joined: Fri Jun 11, 2010 3:33 am

Amazon s3 file download question

Post by gavdbyrne »

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
Post Reply