/    Sign up×
Community /Pin to ProfileBookmark

open the "download dialog" not Acrobat

Hi, I´m trying to do an option to download some pdf files, if I use <a href=”docs/DOC_NAME.pdf><img src=”down.gif”></a> the result is that Acrobat reader open the file in the current window, but i want that the “download dialog” appears not Acrobat Reader. how can I do this?

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@CharlesFeb 15.2007 — There is nothing that you can do to force that behavior. It's controlled by the browser and the user's settings. However, you can strongly suggest it by changing the HTTP header content type to "application/octet-stream". You'll need, however, to get into your server's nitty gritty.
Copy linkTweet thisAlerts:
@maryb86Feb 15.2007 — An alternative is to zip it and link to doc_name.zip. With a zip it will always give a download box.
×

Success!

Help @tamayo 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.17,
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,
)...