Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

HTML code for doing downloading files

SpaceshipSpaceship
Spacemail by SpaceshipSpacemail by Spaceship
Namecheap AuctionsNamecheap Auctions
Watch
Impact
0
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
zip em and everything will be fine
 
0
Close
Put this code in your .htaccess:

AddType application/octet-stream tpo
 
0
Close
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
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

A browser tab with a favicon next to the page title
Search members
You can now search for members by name, company, location and more. Open the search at the top of any page and choose Members. You will...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back