Dynadot โ€” .com Registration $8.99

HTML code for doing downloading files

Spaceship Spaceship
Watch
I am trying to install code that would allow my viewers the ability to download National Geographic map files of different hiking routes I have made, but I have not had any success. Here is the code I am using:

<A HREF = "/gallery/maps/images/NS-TP-05/map.tpo">
<IMG SRC = "/buttons/download.jpg" BORDER = "0"></A>

My expectation is this code/browser would use my download facility on my system to copy the file map.tpo to my desktop. Instead, the contents of the binary file is copied into a new browser window which is not the expected behavior for downloading. I got this code from another website that supports downloading these kinds of files and everything worked just fine.

Can any one tell me what I am doing wrong?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
zip em and everything will be fine
 
0
•••
Put this code in your .htaccess:

AddType application/octet-stream tpo
 
0
•••
xeno439. I tried your zip approach and it worked perfectly. Dan I intend to give your solution a try as well, but I have to investigate what a .htaccess is.

Thanks to the both of you for your commets.

-Stephen Willard
 
0
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back