HighDots Forums  

download a pdf file

alt.html alt.html


Discuss download a pdf file in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
news.surewest.net
 
Posts: n/a

Default download a pdf file - 03-26-2008 , 04:46 PM






GlacierI'm trying to download a pdf file using the a href tag: <a
href="../documents/test.pdf"> but instead of downloading it just opens up in
adobe reader. Is there a way to cause a download? Thanks - Rick



Reply With Quote
  #2  
Old   
dorayme
 
Posts: n/a

Default Re: download a pdf file - 03-26-2008 , 05:31 PM






In article <13ulh2bet971m78 (AT) corp (DOT) supernews.com>,
"news.surewest.net" <rbw95662 (AT) gmail (DOT) com> wrote:

Quote:
GlacierI'm trying to download a pdf file using the a href tag: <a
href="../documents/test.pdf"> but instead of downloading it just opens up in
adobe reader. Is there a way to cause a download? Thanks - Rick
Yes, right click or (on a Mac with one button mouse) control click and
save to somewhere on your hard disk.

--
dorayme


Reply With Quote
  #3  
Old   
Travis Newbury
 
Posts: n/a

Default Re: download a pdf file - 03-26-2008 , 07:14 PM



On Mar 26, 5:46 pm, "news.surewest.net" <rbw95... (AT) gmail (DOT) com> wrote:
Quote:
GlacierI'm trying to download a pdf file using the a href tag: <a
href="../documents/test.pdf"> but instead of downloading it just opens up in
adobe reader. Is there a way to cause a download? Thanks - Rick
Yes, you can force it to download with the Flash and the FileReference
object. and some server side code.


Reply With Quote
  #4  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: download a pdf file - 03-26-2008 , 07:36 PM



Travis Newbury wrote:
Quote:
On Mar 26, 5:46 pm, "news.surewest.net" <rbw95... (AT) gmail (DOT) com> wrote:
GlacierI'm trying to download a pdf file using the a href tag: <a
href="../documents/test.pdf"> but instead of downloading it just opens up in
adobe reader. Is there a way to cause a download? Thanks - Rick

Yes, you can force it to download with the Flash and the FileReference
object. and some server side code.
Whether the user wants to download it or not! That'll show your users
whose boss!


Reply With Quote
  #5  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: download a pdf file - 03-26-2008 , 07:55 PM



Travis Newbury wrote:
Quote:
On Mar 26, 5:46 pm, "news.surewest.net" <rbw95... (AT) gmail (DOT) com> wrote:
GlacierI'm trying to download a pdf file using the a href tag: <a
href="../documents/test.pdf"> but instead of downloading it just opens up in
adobe reader. Is there a way to cause a download? Thanks - Rick

Yes, you can force it to download with the Flash and the FileReference
object. and some server side code.
If you're going through all that trouble just set the the content
disposition to attachment in the header via server-side (of your choice)
and no client plugins required.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #6  
Old   
Travis Newbury
 
Posts: n/a

Default Re: download a pdf file - 03-27-2008 , 04:34 AM



On Mar 26, 8:36 pm, Harlan Messinger
<hmessinger.removet... (AT) comcast (DOT) net> wrote:
Quote:
Travis Newbury wrote:
On Mar 26, 5:46 pm, "news.surewest.net" <rbw95... (AT) gmail (DOT) com> wrote:
GlacierI'm trying to download a pdf file using the a href tag: <a
href="../documents/test.pdf"> but instead of downloading it just opens up in
adobe reader. Is there a way to cause a download? Thanks - Rick

Yes, you can force it to download with the Flash and the FileReference
object. and some server side code.

Whether the user wants to download it or not! That'll show your users
whose boss!
The ability is very useful when working with web based training where
you may want the user to download or upload multiple files. It saves
them a lot of time when they can use the computer's file system rather
than right clicking on each and saying "save as" for each. Kind of a
file downloader if you will, but you can build it into a webpage, or a
Flash application. The people that use it seem to like it a lot
because it saves them time and it is easy to use.


Reply With Quote
  #7  
Old   
Travis Newbury
 
Posts: n/a

Default Re: download a pdf file - 03-27-2008 , 04:38 AM



On Mar 26, 8:55 pm, "Jonathan N. Little" <lws4... (AT) central (DOT) net> wrote:
Quote:
Yes, you can force it to download with the Flash and the FileReference
object. and some server side code.
If you're going through all that trouble just set the the content
disposition to attachment in the header via server-side (of your choice)
and no client plugins required.
No, we are going through that trouble to allow a simple way for the
user to download or upload multiples training files. (I am sure there
are other non training applications, but I have never implemented
one) And the server side code is used for uploading not downloading.

Would your method use the browser to download or does it bring up the
OS file system?


Reply With Quote
  #8  
Old   
Sherman Pendley
 
Posts: n/a

Default Re: download a pdf file - 03-27-2008 , 09:06 AM



"news.surewest.net" <rbw95662 (AT) gmail (DOT) com> writes:

Quote:
GlacierI'm trying to download a pdf file using the a href tag: <a
href="../documents/test.pdf"> but instead of downloading it just opens up in
adobe reader. Is there a way to cause a download? Thanks - Rick
Configure your server to return content type application/octet-stream for
PDF files instead of application/pdf.

sherm--

--
My blog: http://shermspace.blogspot.com
Cocoa programming in Perl: http://camelbones.sourceforge.net


Reply With Quote
  #9  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: download a pdf file - 03-28-2008 , 01:27 PM



Scripsit Travis Newbury:

Quote:
Yes, you can force it to download with the Flash and the FileReference
object. and some server side code.
An amazing idea. All that you need now is just total and totalitarian
control over the world, forcing all people to install Flash software and
allow it to access the user's file system without asking him.

I like the idea of total control, though I'd use it for something else.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.