FtpClient ========== FtpClient is an object that allows you to upload/download files from a FTP server. Properties ---------- N/A Methods ------- - __get__: downloads a file from a server. - __put__: sends a file to a server. Details ------- The `FtpClient` object is a way to upload/download files to a server using the FTP protocol. The first parameter is the name of the file to upload or download. The second parameter is the URL of the FTP server. The third parameter is the success callback The fourth parameter is the error callback [optional] Supported Platforms ------------------- - Android Quick Example ------------------------------ var win = function() { alert("yay"); } var fail = function() { alert("boo"); } var paths = navigator.fileMgr.getRootPaths(); var ftpClient = new FtpClient(); ftpClient.put(paths[0]+"/putfile.txt", "ftp://username:password@server.com:21/putfile.txt;type=i", win, fail); ftpClient.get(paths[0]+"/getfile.txt", "ftp://username:password@server.com:21/putfile.txt", win, fail); Full Example ------------ Contact Example

Example

Put Files Get Files