Actually I think this is what I had in the back of my head when I mentioned
using CFFILE. How does this sound: User clicks on a link to download
template. URL includes variables carrying path information. Download page
includes CFML to copy the file over temporarily. However, I suppose I'd have
to use JavaScript to start the actual download? The following example would
tell CFFILE to go to E drive WordFiles directory, and copy file to downloads
directory on the C drive.

HREF="downloadstuff.cfm?src=E&dir=WordFiles&FileName=readme.doc"

 And on the downloadstuff page ...

<CFFILE ACTION="COPY" SOURCE="#src#:\#dir#\#filename#"
DESTINATION="C:\downloads" ATTRIBUTES="Temporary">

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Ryan Hartwich
Sent: Monday, February 04, 2002 3:51 PM
To: [EMAIL PROTECTED]
Subject: RE: [KCFusion] Secure file download


I have seen some sites that show you a list of files that you can
download.  Each link has something unique appended to it to
differentiate the actual file.  When you click on the link, instead of
actually letting you download, it passes you off to a 2nd page.   It's
the second page that has the security setup.  To get to the second page
you must have the correct security settings and once you are on the
page, only the file you requested is linked to.

Theoretically, someone who receives the url of the actual file could
still download it, but in general, you would only see a single file link
in your browser since the larger list only references the secure page.
This allows you to use straight html links for your files without having
to use cffile or cfcontent.

Of course, I haven't tried this.  Make sure you put your entire source
code out there first to test out the ability for outsiders to steal your
products before going live with something valuable :-)

Ryan

 
 
______________________________________________________________________
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives........ http://www.mail-archive.com/[email protected]
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe.................... mailto:[EMAIL PROTECTED]
To Unsubscribe................ mailto:[EMAIL PROTECTED]
 

Reply via email to