Uploading ASCII text files

Top  Previous  Next

To upload ASCII text files you must set the transfer mode to ASCII using the Sftp#setAscii 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 ASCII

sftp.setAscii();

 

// upload all files in current local directory

sftp.mupload("*.*");





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

© 2021 JSCAPE LLC