iOS Question Ftp upload error

boredsilly

Member
Licensed User
Longtime User
When I try to upload a file via ftp the upload_completed event triggers with the following lastexeception error:

Error writing to stream: Error Domain=kCFErrorDomainCFNetwork Code=200 "(null)" UserInfo={kCFFTPStatusCodeKey=550}

Anyone know what this errors means?
 

boredsilly

Member
Licensed User
Longtime User
Ok I solved it, I needed to escape the unix directory seperator "/"

i.e /tmp/attchments as the upload path needed to be //tmp//attachments
 
Upvote 0

Daniel Uribe

Member
Licensed User
Longtime User
Ok I solved it, I needed to escape the unix directory seperator "/"

i.e /tmp/attchments as the upload path needed to be //tmp//attachments

Wow! perfect boredsilly!! Strangely is necessary put two separator, work fine for me like this:
B4X:
ftp.UploadFile(File.DirDocuments, "3-1.png", True, "//folder1//folder2//folder3//3-1.png")

Thanks a lot!
 
Upvote 0
Top