Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. <cfftp connection = "myConnection"
  2. username = "#username#"
  3. password = "#password#"
  4. server = "#server#"
  5.  
  6. action = "open"
  7. timeout = "500"
  8. stopOnError = "Yes">
  9.  
  10. <cfloop index="i" from="1" to="#ArrayLen(ImagesArray)#">
  11.  
  12. <cfset slocal = "temp" & ImagesArray[i] >
  13. <cfset sremoteFile = "Images" & ImagesArray[i]>
  14.  
  15. <cftry>
  16. <cfftp
  17. connection = "myConnection"
  18. action = "getFile"
  19. name = "uploadFile"
  20. transferMode = "binary"
  21. failIfExists = "false"
  22. localFile = "#slocal#"
  23. remoteFile = "#sremoteFile#" />
  24. <cfcatch>
  25. <cfabort>
  26. </cfcatch>
  27. </cftry>
  28.  
  29. <cfset files = files & "|" & slocalFile>
  30. <cfset fileliste = fileliste & arFiles[i] & "|">
  31. </cfloop>
  32.  
  33. <cfftp connection = "myConnection"
  34. action = "close"
  35. stopOnError = "Yes">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement