The Coldfusion Open Source Forums
Home | ImageCFC | CFFM | BlogCFM | CFMBB | CFOpenMail / ImapCFC | CFOpenChat
Forums | Profile | Inbox | Members | Chat | Search | Login | RSS
Vivio Technologies CFML Hosting
New Topic Reply Subscription Options   Previous Page  Page: 1   Previous Page

Forums: ImageCFC Forum: cfftp godaddy problem?
Created on: 05/27/09 {ts '2018-07-16 11:00:00'} Views: 8837 Replies: 3
cfftp godaddy problem?
Posted Wednesday, May 27, 2009 at {ts '2018-07-16 11:00:00'}

This problem has been stumping me now for a week.

The issue:
I created an upload form on my website, and when i run it on my localhost, I can take my file from c:/mouse.jpg and put it on my FTP site through the below script. But when i run my script on my website which is hosted by GoDaddy it is not recognizing the filepath of C:/mouse.jpg . I get the error : Security: The requested template has been denied access to c:\mouse.jpg.

Godaddy says they aren't blocking any of the commands i am using. http://help.godaddy.com/article/547?

Why can it not recognize my harddrive path?

I know it is connecting to my server correctly because i can execute action = "LISTDIR" on both my localhost and the hosted site.

This has halted my progress of building my website severely! If someone can help me i would be so happy!


<p>Open a connection
<cfftp connection = "myConnection"
username = "myUsername"
password = "myPassword"
server = "ftp.richerconsulting.com"
action = "open"
stopOnError = "Yes"
passive="yes">

<p>Move Image File to Remote Server:<br></p>
<cfftp
connection = "myConnection"
action = "putFile"
name = "uploadFile"
transferMode = "binary"
localFile = "c:/mouse.jpg"
remoteFile = "test/mouse.jpg"
passive="yes"
>
<p>Did MOUSE succeed? <cfoutput>#cfftp.succeeded#</cfoutput>

<p>Close the connection:
<cfftp connection = "myConnection"
action = "close"
stopOnError = "Yes">
<p>Did it succeed? <cfoutput>#cfftp.succeeded#</cfoutput>

RE: cfftp godaddy problem?
Posted Wednesday, May 27, 2009 at {ts '2018-07-16 16:03:00'}

It does not recognize your hard drive path because GoDaddy does not have your hard drive Smile

What exactly do you want to do? Move a file from your local computer to the GoDaddy site, or have the system at GoDaddy to fetch a file from a FTP server and put it on the GoDaddy server?

RE: cfftp godaddy problem?
Posted Wednesday, May 27, 2009 at {ts '2018-07-16 16:10:00'}

I want to have godaddy take a file from my harddrive and FTP it to the site.

I'm creating a ticketing system that allows the user to attach a file to a ticket and everyone can view that file

RE: cfftp godaddy problem?
Posted Wednesday, May 27, 2009 at {ts '2018-07-16 16:34:00'}

Ok, but then I Do not think you need to involve ftp at all.
I am on my mobile right noe and cant give you any examples, bit google 'cffile upload' and you will find plenty. Good luck!

New Topic Reply Subscription Options   Previous Page  Page: 1   Previous Page
Subscription Options
Subscription options are available after you log in.

There are 17 active user sessions right now.