Pular para o conteúdo principal

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>;
ParameterTypeRequiredDefaultsDescription
folderIdstringtrueFolder id
filesany[]trueFiles to upload
documentIdstringfalsenullDocument id
documentTypestringfalsenullDocument type

Basic Usage

SW.FileSystem.uploadFilesToFolder('folderId', [example.xlsx, example.png]);