Uploading binary files

Top  Previous  Next

To upload binary files you must set the transfer mode to binary (the default) using the Sftp#setBinary method. All files with relative paths will be uploaded from your current local directory. See Setting your local directory for details.

 

Example

 

// turn off auto transfer mode detection if enabled

sftp.setAuto(false);

 

// set transfer mode to binary

sftp.setBinary();

 

// upload all files in current local directory

sftp.mupload("*.*");





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC