/    Sign up×
Community /Pin to ProfileBookmark

How to divert downloads – may be cURL

Hi,

I need to allow users of a certain application to download files stored in amazon s3, giving URL will work without an issue.

But I want to hide the s3 URL from user, instead a separate php script to download file, it should download from s3, divert download from S3 to a download stream to server.

for example actual s3 url would be [url]http://bucket.s3.amazonaws.com/dow.pdf[/url] , now my php script should download it from s3 and divert download steam to client browser.Means user will see [url]http://www.mysite.com/downloader.php?file=549[/url], and it will download it to the end user (in the backend it should trigger download from the s3.

s3 part i can handle, what i need to know is how to allow user to download from an external server.

Can someone please let me know a solution

Thanks and Best Regards

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @GUIR spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...