Make a File Downloadable from Your Website

This article was provided by wikiHow, a wiki building the world's largest, highest quality how-to manual. Please edit this article and find author credits at the original wikiHow article on how to make a file downloadable from your website. Content on wikiHow can be shared under a Creative Commons License.

Grade C Views 298
Last edited 2 months ago

A short explanation on how to make files downloadable on your website. This can be easily done by using some very basic HTML code.

Step 1  

Upload the file to your server. This can be done by FTP, or by another method. Consult your hosting company for information how to do this. The file to the same folder the HTML-file which links to it is in. Doing this, it will be easier to link to the file.

Step 2  

Open the webpage you want the filename to appear on in a basic text editor, such as notepad.

Step 3  

Choose a place where you want the download link to be. You have two options:  

  • A word on which people can click to download --> go to step 4
  • An image on which people can click to download --> go to step 6

Step 4  

Enter the following code on the place you want the link to be:'''''word'''''

Step 5  

Change the yourfile.xxx to the name of the file you want to link to, and the word to the word you want your visitors to click on. --> go to step 8

Step 6  

Enter the following code on the place you want the link to be: <a href="yourfile.xxx" target="_blank"><img src="yourimage.xxx" alt="title_of_image" /></a>

Step 7  

If you don't want that annoying box around an image than type this yourfile.xxx " >yourimg.xxx " alt=" yourimage ">

Step 8  

Change the yourfile.xxx to the name of the file you want to link to, the yourimage.xxx to the image (which is also uploaded in the same folder your HTML file is in) you want your visitors to click on, and the title_of_image with the word you want the visitors to see when keep their pointer over the image for some time.

Step 9  

Finished! Save the HTML file, upload it to your server and it should all work fine!

Tips

  • Get some basic HTML knowledge, for example by visiting http://www.w3schools.com/html/ or http://www.w3schools.com/xhtml/ (the XHTML page is recommended)
  • HTML is not as complex as you think. Each link points only to a specific file that your browser handles on a file type basis. For example, a link pointing to an HTML document will open in your default web browser, while linking to a PDF file will cause the downloaded file to open the default PDF viewer (such as Adobe Acrobat Reader or CoolPDF Reader).

Warnings

  • Be sure to test your file before uploading it, otherwise it may be possible it doesn't work correctly and your visitors will be stuck.
  • Make sure that if the file is copyrighted you have permission from the owner!

Via wikihow

Holiday HowTo: DIY Felt Ball Wreath

Fed up with your boring ol' traditional holiday wreath? Ditch the greenery and go extra festive this year with this felt ball wreath HowTo, courtesy of Norwegian craft blog Pickles. P.S. You'll need ...

Art Borne From the Barrel of a Gun

Incredible high speed photography, capturing bullets piercing objects (via Flickr user Alex Andrea Broderick). Previously, Speeding Bullet at 1,000,000 FPS.

Beautiful Animated Boxes Conducted by Drummer

You don't want to miss this animation. The overall concept -particularly the color, movement and sound- is beautiful. The piece is entitled "Box Animation, performed by Mike Edel, and created by ...

Real Life Plastic Green Army Man

Whether you're into cosplay or not, this life sized army "figurine" is awesome. The photo realistic plastic toy soldier was a contestant in a cosplay competition at Italy's Lucca Comics ...

I Want a Robo-Chef in My Kitchen

This year's FOOMA International Food Machinery and Technology Exhibition had a few robots I wouldn't mind hanging around my kitchen. The sushi-bot's hand is amazing... if only it could make the sushi ...

loading...