Title: Message
Hi Rex,
 
Have typed the code exact as suggested (apart from changing #filename# to Dido-Slide.mp3 and #absolute_path_to_file# to E:\) but get a HTTP 500 internal server error.
 
I know the file exists, I know the path is correct and the file exists in the path.
 
If you go to http://www.levart.net/remote_testing/mp3/mp3_download.cfm you will see the result
 
Thanks,
 
Lee
-----Original Message-----
From: Rex A. [mailto:[EMAIL PROTECTED]
Sent: 03 September 2004 20:57
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] Protecting a file - charging for download

Use this code:

 

<cfheader name="Content-Disposition" value="attachment;filename=#filename#">

<cfcontent file="#absolute_path_to_file#" type="unknown">

 

make sure that before they get to this page that they are logged in and stuff

 

or you can just have a password protected directory on the web server

 

-----Original Message-----
From: Lee Fortnam [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 11:54 AM
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] Protecting a file - charging for download

 

Dear All,

Have been monitoring the list for a while and have to say that you lot really know what you're talking about, anyway, enough of the compliments.

I am looking to create a download site but not sure how I can protect the content (files) from being downloaded directly if someone can get the URL to the file during the save process. This could then be sent on to other people to allow them to download it without paying for it. Is there anyway I can hold the files out of the web directory and only allow someone logged in to download the content?

Any other possible ways of doing this are more than welcome, the above is just an example.

Thanks in advance.

Lee

Reply via email to