Add Downloadable Documents
Certain common documents, such as Microsoft Word (.doc), Excel (.xls) and Powerpoint (.ppt), as well as Acrobat (.pdf), can be added to your site as downloadable files. The user must have the appropriate editing or viewing software to make use of such documents. You will need a sample file for this exercise. Here are two you can use:
Step 1: Make the file ready for the Web
- All files used in Web sites, including downloadable documents, should avoid spaces and special characters in the file name
- If working with your own document, examine the file on your computer's desktop
- Re-name the file to remove any spaces or special characters
- You can use dashes (-) or underscores (_) instead of spaces
- The file must have the correct extension, e.g. ".doc" for Word documents or ".pdf" for Acrobat documents
Step 2: Place document within local site files
- Still on your computer's desktop, find and open your site's local folder
- Look for a folder at the site's root named "files" or "documents" or perhaps "secure"; if you don't find one of these, create a new folder named "documents"
- Move your sample document into this folder
Step 3: Upload file and link to it
- Switch to Dreamweaver; you may want to right/ctrl-click on the list of files and select "Refresh Local Files" to update the list
- Find an open the "documents" folder by double-clicking on it
- Select the document within and click the Put button in the files panel
- Open the page you want to link from, e.g. my_project/index.html or root/my_page.html
- Create a new link to the file the same way you would if linking to a page, i.e. using the Browse button or the Point to File button
- Because the user must have appropriate software, it is customary to warn them in the link text that the link is to a downloadable file, e.g. "Application Form (PDF)"
- Save, Put and switch to the browser to reload and validate by clicking the link
Important note
The version of the document linked from the Web page is completely independent of the original file. Any changes you make to your document on your computer will not be reflected in the online version unless you either:
- Upload the edited document under the exact same file name, overwriting the original, OR
- Upload a new edited version under a new file name, and re-link
« Previous | Home | Next »

