File System
The namespace FileSystem provides to developers a method to easily upload files to a folder.
//accessing to FileSystem methods
SW.FileSystem.{methodName}
uploadFilesToFolder
Description
This method can be used to upload files to a folder.
Method(s)
1 declare function uploadFilesToFolder(folderId: string, files: any[], documentId: string = null, documentType: string = null) : Promise<ProgressReport>;
Parameter | Type | Required | Defaults | Description |
---|---|---|---|---|
folderId | string | true | Folder id | |
files | any[] | true | Files to upload | |
documentId | string | false | null | Document id |
documentType | string | false | null | Document type |
Basic Usage
SW.FileSystem.uploadFilesToFolder('folderId', [example.xlsx, example.png]);