Classes
Methods
# async create(file, metadata) → {Promise.<EntityFile>}
Uploads a File or Buffer Object
Parameters:
Name | Type | Description |
---|---|---|
file |
File
|
Buffer
|
The file content eather as ES6 File object or Buffer. |
metadata |
FileMetaData
|
The file metadata. |
Promise.<EntityFile>
# async delete() → {Promise.<void>}
Deletes the profile image of the entity with the specified id.
Promise.<void>
# async download(fileId, optionsopt) → {String}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
fileId |
String
|
The id of the file. | |
options |
DownloadOptions
|
<optional> |
The download options. |
binary
String