Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <cfftp connection = "myConnection"
- username = "#username#"
- password = "#password#"
- server = "#server#"
- action = "open"
- timeout = "500"
- stopOnError = "Yes">
- <cfloop index="i" from="1" to="#ArrayLen(ImagesArray)#">
- <cfset slocal = "temp" & ImagesArray[i] >
- <cfset sremoteFile = "Images" & ImagesArray[i]>
- <cftry>
- <cfftp
- connection = "myConnection"
- action = "getFile"
- name = "uploadFile"
- transferMode = "binary"
- failIfExists = "false"
- localFile = "#slocal#"
- remoteFile = "#sremoteFile#" />
- <cfcatch>
- <cfabort>
- </cfcatch>
- </cftry>
- <cfset files = files & "|" & slocalFile>
- <cfset fileliste = fileliste & arFiles[i] & "|">
- </cfloop>
- <cfftp connection = "myConnection"
- action = "close"
- stopOnError = "Yes">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement