School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,428 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,489 people online right now. Registration is fast and FREE... Join Now!




Uploading a file using FTP to another Server

 

Uploading a file using FTP to another Server

xheartonfire43x

28 May, 2009 - 05:31 AM
Post #1

D.I.C Regular
***

Joined: 22 Dec, 2008
Posts: 260



Thanked: 2 times
My Contributions
I am building an application that will create a PDF and then it needs to FTP the file over to a different server, because it builds the PDF on a ColdFusion 8 Server and the server that runs the website is a ColdFusion 5 server... don't ask why I have a ColdFusion 5 server running on my network... I am not the boss. So Anyways I have the application building the PDF but I don't know CF FTP much.

CODE

        <cfftp action="open" connection="CTAcademy" server="********" username="******" password="******">
        <cflocation url="/CT_STEM_TEMP.pdf" addtoken="no">
    </cffunction>
</cfcomponent>


Sorry I had to clear out my server information.

EDIT:

I have a gotten a little closer to fixing it.

CODE

        <cfftp action="putfile" server="******" connection="CTAcademy" username="******" password="******" localfile="C:\CustomerSites\CTAcad PDF Maker\CT_STEM_TEMP.pdf" remotefile="/files/CT_STEM.pdf">

        <cflocation url="/CT_STEM_TEMP.pdf" addtoken="no">
    </cffunction>
</cfcomponent>


I now get a 550 error (Access denied) All my login info is correct though. Is there anything else that it could be?

This post has been edited by xheartonfire43x: 28 May, 2009 - 06:43 AM

User is offlineProfile CardPM
+Quote Post


xheartonfire43x

RE: Uploading A File Using FTP To Another Server

28 May, 2009 - 12:08 PM
Post #2

D.I.C Regular
***

Joined: 22 Dec, 2008
Posts: 260



Thanked: 2 times
My Contributions
I got the FTP working. I figured out that I just needed to make a new FTP for it rather than using a virtual directory.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 12:25AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month