Skip to content

queue API methods upload

Steve edited this page Apr 29, 2020 · 2 revisions

batchUpload(targetPath: string, options: IUploadOptions = {}):void ~> Promise <boolean>

Uploads the local files currently collected in the queue to the given path on FSI Server.

const queue = client.createQueue({continueOnError:true});

queue.login("user", "password");

queue.listLocal("c://myImages/", {recursive:true});
queue.batchUpload("images/myUploads", {overwriteExisting:true});
queue.logout();

Note: the methods above just add the commands to the queue. Execution starts when calling queue.run() or queue.runWithResults(). The ~> indicates the result type.

Clone this wiki locally