Help!!!! I am getting a 501 Syntax Error with CFFTP ListDir. I created the file in January of 2014 and today is the first time it has failed.

New Here ,
Nov 13, 2014 Nov 13, 2014

Copy link to clipboard

Copied

<!---Control the timeout--->

<cfsetting requesttimeout="600">

<cfset thisDate = now()>

<cfset today = #DateFormat(thisDate,"mm-dd-yyyy")#>

<!--- Open ftp connection --->

<cfftp connection="MyFtp"

    server="#FTPserver#"

    username="#username#"

    password="#password#"

    action="Open"

    stoponerror="Yes">

   

<cfftp action="listdir"

stopOnError="Yes"

name="Files"

directory="/export400"

connection="MyFtp"

>

SyntaxError.jpg

Views

177

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Nov 13, 2014 Nov 13, 2014

Copy link to clipboard

Copied

LATEST

Try removing the quotes from around the connection name in your CFFTP lisdir block.  So change the last line to connection=MyFtp instead of connection="MyFtp".

-Carl V.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines