Jump to content
ace

Allow File Download From Webpage

Recommended Posts

Hello,

 

Is there a way to have a link on a webpage that prompts you to download a file.

I have a word document that i want to make available for download. I would like it that when the user clicks on the link they are prompted to download the file.

Any idea, TCH family on how to do this. Or any other suggestions?

 

Thanks

Share this post


Link to post
Share on other sites

I believe if it's a .doc extension it will try to open in Word if the user is uning IE when they click the link.

 

You could use a force download script written in PHP that would be better.

Share this post


Link to post
Share on other sites
Hello,

 

Is there a way to have a link on a webpage that prompts you to download a file.

I have a word document that i want to make available for download.  I would like it that when the user clicks on the link they are prompted to download the file.

Any idea, TCH family on how to do this. Or any other suggestions?

 

Thanks

 

If you put it in your public ftp and then create the link using ftp:// instead of http:// that will force the download. I'm assuming this work across browsers though, I don't know for sure.

 

Or, you could just have text that says 'use right click and save as...'

 

I there a particular reason you want to force a download rather than letting them click on the link (and open it if they can)?

Share this post


Link to post
Share on other sites

Hello evrybody,

 

just zip it up in to zip or rar ;)

 

basicaly any extention IE or any other browser does not know will promt for a download insted of opening it B)

Share this post


Link to post
Share on other sites

I've used the "PHP Easy Download" from here http://www.ironclad.net/scripts/

 

Straight forward to use, what ever directory you set it to use it provides the 'save as' or 'run' dialoge prompt for files with the file extensions you set it to offer for downloads.

 

HTH, Tom

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...