PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV Mobile 2024 → FTPSend via SFTP-Connection on Android Device
FTPSend via SFTP-Connection on Android Device
Started by Patrick Schwarz, Jun., 09 2019 4:56 PM - No answer
Posted on June, 09 2019 - 4:56 PM
Hi,

I'm trying to send a file with FTPSend. Im Connected to the server via sftp. The Connection works, other functions like FTPGet are working too. It seems when I'm connected with sftp the Routine FTPSend cannot find or access the file.
The ErrorInfo Message says: "File or dorectory (!s!) not found or not accessible"
My Code:
nConNumber is int
nConNumber = FTPConnect("sftp://example.org", "user", "password", 22)
fCreate("helloworld.txt")
nRes is boolean
bRes = FTPSend(nConNumber, "helloworld.txt", "/")
IF bRes = False THEN
Info(ErrorInfo())
END


When I connect with normal ftp it works fine, also in the android Emulator on the PC.
I tested it on a Device running Android 7, and another one running Android 8.

Best regards,
Patrick