Jump to content

Archived

This topic is now archived and is closed to further replies.

DLR

How do I get a viewer to download a file from my site?

Recommended Posts

HI,
THis one has me beat. I want to have a viewer click a button and then download a file (an ebook) from my domain to their computer. I will protect the download with a password - but what is the command to activate the download?

I have searched and searched!

Appreciate your help.

Share this post


Link to post
Share on other sites
You need to serve the download... I'm sure there are lots of scripts available, or you could roll your own.  Ultimately, you just need to serve appropriate headers and spit out the file contents in-stream.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.