Skip to content

client API methods upload

Steve edited this page Apr 29, 2020 · 2 revisions

upload(source: string | IListEntryUpload, targetPath: string, options: IUploadOptions = {}): Promise<boolean>

Upload a single file to FSI Server.

client.login("user", "password")
.then( () => {
    client.upload("c://myImages", "images/image.tif")
    .then( (success) => {
      console.log("upload finished with result " + success);
    })
    .catch(console.error)
    .finally( () => {
      client.logout();
    })
})
.catch(console.error);

Clone this wiki locally