Regarding Upload - WeOnlyDo Discussion board

Regarding Upload (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Nagendra Kumar Seetharamaiah, Sunday, July 22, 2018, 13:01 (30 days ago)

Hi,
I am VB6 developer. I wanted to buy SFTP ActiveX control before that I want clarification regarding uploading of text file from windows system to web server.
1. How I can check whether file is transferred to remote folder properly or not.
2. I wanted to transfer all the files of the local folder to remote folder. Whether it supports wildcard character.
Thanks
Kumar

Regarding Upload

by wodSupport, Sunday, July 22, 2018, 17:58 (30 days ago) @ Nagendra Kumar Seetharamaiah

Hi Kumar,

once you upload file using PutFile, you should wait for Done event to fire which would mean transfer was successful. There's no need for additional check, since SSH layer was secured and if file wasn't uploaded properly then component would break connection during the transfer. If you want additional security, you can download file back and check it, or you can check for file length on remote side (for example using ListAttributes) or similar.

As for uploading multiple files, you can use PutFiles method, and then in LoopItem event decide if you will upload specific file or skip it.

I hope this helps!
Jasmine.