PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV Mobile 2024 → FTPSend via SFTP-Connection on Android Device
FTPSend via SFTP-Connection on Android Device
Iniciado por Patrick Schwarz, 09,jun. 2019 16:56 - No hay respuesta
Publicado el 09,junio 2019 - 16:56
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