/    Sign up×
Community /Pin to ProfileBookmark

Another download question

I want to provide for a download of a pdf file. What is the mechanism that provides this ability?

to post a comment
Full-stack Developer

3 Comments(s)

Copy linkTweet thisAlerts:
@KeveyMar 06.2007 — This will open the file when they click the link:
[CODE]<a href="http://yoursite.com/yourfile.pdf">Download this file</a>[/CODE]

If the person wants to actually download the file without opening it they would right click the link and save it... Save link as (Firefox) or Save target as (IE)
Copy linkTweet thisAlerts:
@PittsburghRedauthorMar 07.2007 — This did not work for me. The screen was blank. I did not try the right click yet. When I look at the source code of pages that offer a download, I see the users afffirmative option calls a cgi script. I am assuming to offer a download requires a cgi script? And I should seek such a script?
Copy linkTweet thisAlerts:
@PittsburghRedauthorMar 07.2007 — OK. Problem solved. I found a simple PHP script that provides for a simple download. Worked first time ... miracle.
×

Success!

Help @PittsburghRed 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.5,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...