How do I make a file available for download or for viewing?

How do I make a file available for download or for viewing?

The simplest way to make a file available to be downloaded or for viewing from your page is to link to it.

So, if you have an PDF file for example, you would simply create a link to myfile.pdf
When a visitor comes to your site, they can click on the link. They then have the option of viewing the file (provided they have the appropriate viewer for the file type) or downloading the file. To use this option, simply create a link to the file as you would create any other link.

The actual contents of the link depends on where you will place the file. If the file will be in the same folder as the page that has the link on it, then just enter the file name (e.g myfile.pdf ). If the file will be in a related folder, then you need the link to specify where the file is in relation to the page (e.g. ./somesubfolder/myfile.pdf or ../higherupfolder/mypdfs/myfile.pdf ). You can also use the absolute path (e.g. www.myserver.com./somefolder/myfile.pdf ).

Leave the url type field blank for partial or relative paths. Use 'http://' in the url type field if you are using the full or absolute path.


If you want the software to upload the file for you, then do this: go to the Foreign Object Editor. For Format, select 'Publish File'. Click on the 'Filepath' button to find your file. If you use the 'Gather' option when you Publish, then the file will uploaded to your webhost automatically. The file will be placed in the same folder as the web page, by default. You can have it go to a sub-folder instead by changing the 'External Files' entry in the Publisher's Sub-Folders option (Publisher's Page tab, Sub-Folders button) Once the file is uploaded to your webhost you can delete the Foreign Object from your page if you like.

If you want to 'embed' a file into your page, see the post on Embeding Foreign Objects.

Also, see the post on Adding audio to your page.
Original Post

Add Reply

Likes (0)
×
×
×
×