Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question re: how to copy file to ftp directory
#2
I often use FtpUpload to upload my files. It works well. In your case, maybe it depends on FTP site, or some parameters are incorrect. Try to use Ftp class functions directly, without FtpUpload. Password can be encrypted ("[*...*]") or not. Example:

Code:
Copy      Help
;Declare variable and start FTP session:
Ftp f.Connect("ftp.server.com" "myname" "[*074A294684CB7360*]")

;Change current ftp directory:
if(!f.DirSet("public_html/images")) mes- "FTP error: DirSet failed."

;Change current local directory:
ChDir "c:\my documents\my pictures"

;Upload file:
if(!f.FilePut("one.gif" "one.gif")) mes- "FTP error: 'one.gif' upload failed."


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)