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

Problem with CFFTP on shared server

Status
Not open for further replies.

since1968

Programmer
May 29, 2001
2
US
I'm having a problem getting CFFTP to work on a shared server. The code works on my localhost, but when I post it to the host Intermedia I get an error. I want to grab a file on a remote server using ftp. Code and error message follow my sig.

Thanks,

Marc Garrett

Code:

<cfftp
action=&quot;GETFILE&quot;
username=&quot;myUsername&quot;
password=&quot;myPassword&quot;
server=&quot;216.111.12.157&quot;
directory=&quot;Database/&quot;
remotefile=&quot;Cities.txt&quot;
localfile=&quot;D:\FTP\Forrest6\Htdocs\Cities.txt&quot;
transfermode=&quot;ASCII&quot;>

Error message:

Attribute set validation error in tag CFFTP

The tag has an invalid attribute combination: the value of the tag switch attribute 'ACTION' which is now 'GETFILE' requires a different combination of attributes. For the same switch attribute value the following unknown attributes have been provided: (DIRECTORY).

The error occurred while processing an element with a general identifier of (CFFTP), occupying document position (16:1) to (16:201).

 
Hey since1968,

I think your problem is with the &quot;directory&quot; attribute. This isn't used when the action is set to &quot;getFile&quot;. Try combining the &quot;directory&quot; and &quot;remoteFile&quot; attributes into a single parameter like this:

remotefile=&quot;Database/Cities.txt&quot;

I think this will work for you but let me know if you still have trouble.

Good luck,
GJ
 
That did it. I don't know why using the DIRECTORY attribute didn't throw an error on my system while it caused problems on the remote host. Either way though, when I discarded the DIRECTORY attribute and specified the REMOTEFILE with the folder path, it worked.

Thank you very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top