HighDots Forums  

html tag for downloading files

alt.html.tags alt.html.tags


Discuss html tag for downloading files in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
don
 
Posts: n/a

Default html tag for downloading files - 08-01-2007 , 12:09 AM






Hi Folks,

I am don.

I am attempting to construct a web page.
It will have folders containing files, pictures or text.
I want people visiting my site to be able to chose and
download any of these files.
How do I write a tag line that the visitor can click on so as
to enable them to download from my site?

Thanks.
Don.

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

Default Re: html tag for downloading files - 09-06-2007 , 04:51 PM






On Wed, 01 Aug 2007 14:39:55 +0930, don <noddleif (AT) westnet (DOT) com.au>
wrote:

Quote:
Hi Folks,

I am don.

I am attempting to construct a web page.
It will have folders containing files, pictures or text.
I want people visiting my site to be able to chose and
download any of these files.
How do I write a tag line that the visitor can click on so as
to enable them to download from my site?

<a href="a.zip">Zip file of all A-animals</a>

Sid



Reply With Quote
  #3  
Old   
Rick Wright
 
Posts: n/a

Default Re: html tag for downloading files - 03-26-2008 , 04:55 PM



What if it's a pdf file. How do you get a pdf file to download. Using <a
href="../test.pdf"> only opens the pdf file in adobe reader. Is there a way
to have the file download? Thanks - Rick



Reply With Quote
  #4  
Old   
Paul Lautman
 
Posts: n/a

Default Re: html tag for downloading files - 05-26-2008 , 04:35 PM



Rick Wright wrote:
Quote:
What if it's a pdf file. How do you get a pdf file to download. Using <a
href="../test.pdf"> only opens the pdf file in adobe reader.
Is there a way to have the file download? Thanks - Rick
If the user does not have adobe reader configured to open the file, it will
just download. It is up to the user what action they want their browser to
take. The user can (normally) right click the link and ask for the file to
be downloaded.

If you have access to server side scripting language (e.g. php) you can set
the headers so that the browser will not recognise the file as a pdf file
and will download it anyway.




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.