Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot move file from web server to client machine

Status
Not open for further replies.

mikovision

Programmer
Jun 13, 2001
4
US
I need to move a file from the web server to a client machine. Is this possible at all?

I have tried CFFILE Move, this works great if moving files between directories on the server. Can anyone help!

- MV
 
Take a look at <CFCONTENT> in your CFML Language Reference. It allows you to download files to the browser, specifying the MIME type and file name. If the file isn't a type that a browser usually handles, it'll prompt the &quot;save download&quot; dialog.

As far as I understand it, CFFILE, CFFTP, and CFHTTP are all &quot;to-the-server&quot; methods; CFCONTENT is &quot;from-the-server&quot; and probably what you're looking for.

One more option: if that client machine is running an FTP server, you can CFFTP to it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top