0

I want to upload files on an Android app using Secure-FTP or FTP-S. I am able to upload files using a ftp client, available on github(Link: https://github.com/macdonst/FtpClient/tree/master/v2.2.0).

I would like to know how to go about implementing Secure-FTP or FTP-S. I have researched a lot on this but did not find sufficient documentation. So it would be great if anyone could provide me with suggestions or any helpful links in this case.

Thanks in advance.

user3230561
  • 445
  • 1
  • 10
  • 21

2 Answers2

0

The most commonly used Java SFTP client library is Jsch.

See this answer for details:

How to retrieve a file from a server via SFTP?

It works fine on Android.

Community
  • 1
  • 1
HHK
  • 4,852
  • 1
  • 23
  • 40
  • I am new to android development. The code is basically in java. How do I refer it using phonegap? – user3230561 Jun 20 '14 at 10:58
  • Unfortunately there does not seem to be a Jsch/SFTP plugin for PhoneGap/Cordova at this time. You would need to write it yourself or have someone write it for you. – HHK Jun 20 '14 at 11:00
  • is there any helpful documentation you know of that could help me in this case.. That would be helpful – user3230561 Jun 20 '14 at 11:12
0

Coming late to the party ... however, i wrote a sftp plugin for cordova only for android that works. This plugin uses JSCh as sftp client.

It can be installed using :

cordova plugin add https://github.com/sdkcarlos/cordova-ourcodeworld-sftpplugin.git

The plugin offers support for the following tasks :

  • Secure connection
  • List a remote path
  • Upload files
  • Download files
  • Delete remote file
  • Use private key to connect
  • Download/Upload progress indicator

Read the information of the plugin here.

Carlos Delgado
  • 2,930
  • 4
  • 23
  • 49