Skip to main content
Participant
January 12, 2009
Question

download file in coldfusion

  • January 12, 2009
  • 2 replies
  • 1006 views
hi, i'm sue..i'm familiar using cffile to upload file ..but now i dont know how to download file via source code like using cffile action='upload'. could u help me ?thanks alot
This topic has been closed for replies.

2 replies

Inspiring
January 12, 2009
shurah wrote:
> hi, i'm sue..i'm familiar using cffile to upload file ..but now i dont know how to download file via source code like using cffile action='upload'. could u help me ?thanks alot

cfcontent might or might not be what you want.

First link on Google for "cfcontent download":
http://www.rickroot.com/blog/1/2005/08/Note-to-self--Using-CFCONTENT-to-force-file-download-instead-of-display.cfm

--
Mack
shurahAuthor
Participant
January 13, 2009
thanks alot...for ur assistant Mark. its really function..
Participating Frequently
January 12, 2009
CFFILE doesn't do 'download' because download is done via a simple link - I'm not sure what you're trying to do but why don't you just code in a link to the file that you want users to download?