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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Uploading File to Another Server

Status
Not open for further replies.

gatsrulz

MIS
Sep 2, 2004
60
Is it possible for me to store the uploaded file (pdf, doc etc) to another server apart from the coldfusion server? Or does it have to be on the same server? Is there a workaround to this?

 
How about uploading it with CFFILE and then FTPing with CFFTP?

I have not done it, but it seems to me it should work.
 
I am going to guess that you are talking about FXP'ing, storeing a file on a server then using server side software to send it some place else. This is very possbile with cfml.

Here is a little code to help you out

<cffile action = "upload"
fileField = "FileContents"
destination = "c:\files\upload\"
accept = "text/html"
nameConflict = "MakeUnique">

Then you will use cfftp:

with the action remoteFile attribute. I hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top