I have CF5. The reason I have to do this is the client isn't on a CF hos t, so I have to generate static pages and upload them to their old fashioned html host.
Cheers, Mike Kear Windsor, NSW, Australia AFP WebWorks -----Original Message----- From: Dan Blickensderfer [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 13, 2002 12:38 PM To: CF-Talk Subject: Re: CFFTP help please .. whats wrong here? Mike, What version of CF Server is installed on server? Thanks, Dan Blickensderfer ----- Original Message ----- From: "Mike Kear" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Saturday, January 12, 2002 8:18 PM Subject: RE: CFFTP help please .. whats wrong here? > Thanks, Jim. I did that but the problem didn't go away. I checked us in > g a > text output that the code you sent me does indeed yield the correct > directory and file, so that's correct, sure enough. But I guess that w as > n't > the error. I still get an error in <h1>tags at the top of the page say in > g : > "The attribute FileOnServer must contain a filename with a .htm or .htm l > extension". Could this be the ftp server sending this message? If i > t > was my CF5 server sending the message it would appear in the debugging > message at the bottom of the template wouldn't it. > > I don't get this message when I do it using CuteFTP or the DOS FTP prog ra > m. > > Any other ideas what could be causing the PUTFILE tag to fall over? > > Cheers, > Mike Kear > Windsor, NSW, Australia > AFP WebWorks > > > -----Original Message----- > From: Jim McAtee [mailto:[EMAIL PROTECTED]] > Sent: Sunday, January 13, 2002 11:26 AM > To: CF-Talk > Subject: Re: CFFTP help please .. whats wrong here? > > Yes, if I recall correctly. If the file is in the same directory as th e > template, you can use: > > localfile="#ExpandPath('filetoupload.html')#" > > Jim > > > ----- Original Message ----- > From: "Mike Kear" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Saturday, January 12, 2002 5:18 PM > Subject: RE: CFFTP help please .. whats wrong here? > > > > Are you saying that the attribute "localfile" in the putfile tag shou ld > b > > e > > something like > > localfile="C:\inetpub\wwwroot\clientsite\workingfolder\filetoupload h > tm > > l" > > rather than localfile="filetoupload.html"? > > > > Cheers, > > Mike Kear > > Windsor, NSW, Australia > > AFP WebWorks > > > > > > > > -----Original Message----- > > From: Jim McAtee [mailto:[EMAIL PROTECTED]] > > Sent: Sunday, January 13, 2002 11:11 AM > > To: CF-Talk > > Subject: Re: CFFTP help please .. whats wrong here? > > > > Are you using a fully qualified path to designate the 'localfile'? > > > > Jim > > > > > > ----- Original Message ----- > > From: "Mike Kear" <[EMAIL PROTECTED]> > > To: "CF-Talk" <[EMAIL PROTECTED]> > > Sent: Saturday, January 12, 2002 4:57 PM > > Subject: CFFTP help please .. whats wrong here? > > > > > > > I'm trying to have a CF template automatically upload a file to a c li > en > > t's > > > site, and I keep getting an error. I don't know what's wrong .. c an > > > someone see please? > > > > > > The error I'm getting is: "The attribute FileOnServer must contain a > > > filename with a .htm or .html extension 500 Illegal PORT command" > an > > d > > the > > > debugging info says it's to do with the CFFTP tag that's doing the pu > tf > > ile > > > action. > > > > > > I've done all these actions using the DOS window FTP program, so I kn > ow > > I > > > have all the relevant permissions to do this. > > > > > > > > > Here's my code: (servername and password etc changed to protect th e > > > innocent) > > > > > > > > > <cfftp action="OPEN" > > > server="servername.com.au" > > > username="username" > > > password="password" > > > stoponerror="Yes" > > > port="21" > > > connection="clientname"> > > > > > > > > > > > > <cfftp action="CHANGEDIR" > > > directory="/home/radio/public_html/therightfolder" > > > connection="clientname"> > > > > > > > > > <cfftp action="PUTFILE" > > > stoponerror="Yes" > > > localfile="filetoupload.html" > > > remotefile=" filetoupload.html" > > > transfermode="ASCII" > > > connection="clientname"> > > > > > > <cfftp action = "close" > > > connection="clientname" > > > stopOnError = "Yes"> > > > > > > > > > Can you see what's wrong? > > > > > > Cheers, > > > Mike Kear > > > Windsor, NSW, Australia > > > AFP WebWorks > > > > > > > > > > > > ______________________________________________________________________ Why Share? Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

