-
Notifications
You must be signed in to change notification settings - Fork 0
client API methods upload
hannsolo edited this page May 6, 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/image.tif", "images/foo/",
{flattenTargetPath:true}
)
.then( (success) => {
console.log("upload finished with result " + success);
})
.catch(console.error)
.finally( () => {
client.logout();
})
})
.catch(console.error);
Documentation
-
Interfaces