I’m using the “CURLS ftp file upload direct” example, and while it uploads the file to the ftp server, the name of the file gets changed from “something.zip” to
OptionUsername.
If I change the name back on the ftp, and add .zip extension, the file works.
I’ve tried other ftp Curl examples, and they all do the same thing - the file gets uploaded, but with the user name as the file name
dim d as new UploadCURL
if d.OpenMTInputFile(f) then
// ok
else
MsgBox "Failed to open file."
Return
End If
d.OptionURL = url.Text
d.OptionUpload = True
d.OptionVerbose = true // generate messages
d.CollectDebugMessages = true // collect them
d.OptionUsername = "the_user_name"
d.OptionPassword = "00000-00000-00000"
d.OptionSSHAuthTypes = 2+8 // for SFTP: only allow keyboard or interactive login, no public key
dim e as integer = d.Perform
dim DebugMessages as string = d.DebugMessages
// check those in debugger in case of errors
listbox1.addrow "Result: "+str(e)
if e <> 0 then
break
end if
6 posts - 3 participants