B boredsilly Member Licensed User Longtime User Jun 28, 2016 #1 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?
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?
Erel B4X founder Staff member Licensed User Longtime User Jun 28, 2016 #2 Error code 550 means that you do not have permission to access the file. Upvote 0
B boredsilly Member Licensed User Longtime User Jun 28, 2016 #4 Erel said: Error code 550 means that you do not have permission to access the file. Click to expand... Is that locally or remotely? If local is storing it in a directory under File.DirDocuments not correct? Upvote 0
Erel said: Error code 550 means that you do not have permission to access the file. Click to expand... Is that locally or remotely? If local is storing it in a directory under File.DirDocuments not correct?
B boredsilly Member Licensed User Longtime User Jun 29, 2016 #5 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
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
Daniel Uribe Member Licensed User Longtime User Aug 15, 2017 #6 boredsilly said: 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 Click to expand... 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
boredsilly said: 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 Click to expand... 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!