...

View Full Version : How do you allow visitors to download from site?



Murw
11-19-2005, 05:02 PM
Hi,

I am a new web developer and I was wondering if anybody could point me in the right direction. I want to allow my visitors to download a word or pdf doc. How do I do this?

Thanks so much,

Murw

mlseim
11-19-2005, 05:19 PM
You put your .pdf or .doc file in a directory on your webspace and
give them a link like this:

http://www.croponline.com/uploads/clips.pdf


<a href="http://www.croponline.com/uploads/clips.pdf">CROP Clips (.pdf 185K)</a>

In this example, the .pdf file called "clips.pdf" is located in a folder called "uploads".

Their browser asks them if they want to open the file or save it to disk.

When offering a file like this, it's always a good idea to let them know ahead of time what type of file it is, and how big it is (before they click on the link).

Murw
11-19-2005, 08:46 PM
Thanks for the help. One more question does that send a download popup to the user asking if they would like to download, or does it just happen automatically when they click the link.

Thanks again,
Murw

oracleguy
11-19-2005, 09:25 PM
If the browser can't open it, it will prompt them with a download dialog box. But in instances like with PDFs, if they have the proper software plug-in installed to view it in their browser, it will usually just automatically open it up.

mlseim
11-19-2005, 11:40 PM
Oracleguy is right ...

but I'm trying to think if you might have the option with
different systems like Windows XP vs Windows 98, 2000, etc.

And maybe browsers may determine that also ... the option to
prompt before opening or downloading or to open without a prompt.

It's no big deal though ... people usually expect that and like the
idea of having the choice.

SteelValor
11-21-2005, 09:18 PM
It's all governed by how the mime types and helper applications are setup on the client pc. So in theory it could be different for everyone. Welcome to our world ;D

dummy_1
12-07-2005, 01:35 AM
You put your .pdf or .doc file in a directory on your webspace and
give them a link like this:

http://www.croponline.com/uploads/clips.pdf


<a href="http://www.croponline.com/uploads/clips.pdf">CROP Clips (.pdf 185K)</a>

In this example, the .pdf file called "clips.pdf" is located in a folder called "uploads".

Their browser asks them if they want to open the file or save it to disk.

When offering a file like this, it's always a good idea to let them know ahead of time what type of file it is, and how big it is (before they click on the link).


Hello,

Your thread as a reference.

Once I save the file in a directory on my webspace. Do I have to put my server online 24/7 so they can download the file from my website.

Can you please explain to me the process of downloading a file on a website. Like for example an ebook, or a software.

How can i save the file on my webspace? Do I need a software to save the file or software on my website?

Thank you.

dummy_1

Rocket Boy
12-07-2005, 03:04 PM
Your server should be online all the time anyway, there is not much you can do about that. It makes no difference whether you PC is switched on or not... Unless you are hosting your site from your PC :D

All you need to do is upload the file to your server. Then create a link on your web page that goes to that file. If you are uploading a picture... Say pic1.jpg, then you might upload that to ftp.yoursite.com/images. The file location will be www.yoursite.com/images/pic1.jpg

The code to go on your webpage is right here....


<a href="http://www.yoursite.com/images/pic1.jpg">CLICK HERE TO SEE PIC1</a>


This Part of the code above is where the user will be taken if they click


<a href="http://www.yoursite.com/images/pic1.jpg"></a>

this part of the code above is what will be displayed on their screen as a buton


<a href="http://www.yoursite.com/images/pic1.jpg">CLICK HERE TO DOWNLOAD PIC1</a>

About the first post in this thread... Do a Google search for Microsoft Word Viewer. Instead of downloading files your users can read then directly from your webpages.

Rocket Boy
12-07-2005, 03:05 PM
Your server should be online all the time anyway, there is not much you can do about that. It makes no difference whether you PC is switched on or not... Unless you are hosting your site from your PC :D

All you need to do is upload the file to your server. Then create a link on your web page that goes to that file. If you are uploading a picture... Say pic1.jpg, then you might upload that to ftp.yoursite.com/images. The file location will be www.yoursite.com/images/pic1.jpg

The code to go on your webpage is right here....


<a href="http://www.yoursite.com/images/pic1.jpg">CLICK HERE TO SEE PIC1</a>


This Part of the code above is where the user will be taken if they click


<a href="http://www.yoursite.com/images/pic1.jpg"></a>

This part of the code above is what will be displayed on their screen as a buton


CLICK HERE TO SEE PIC1

About the first post in this thread... Do a Google search for Microsoft Word Viewer. Instead of downloading files your users can read then directly from your webpages.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum