api.upload

Provides functionality for uploading files

upload.uploadFile(file, params) ⇒ Promise.<any>

Upload local file via router /api/binary.

Param Type Description
file File The file
params Object Object containing imType property to describe the uploaded file

upload.uploadUri(uri, params) ⇒ Promise.<any>

Send a uri to be uploaded to backend

Param Type
uri string
params Object

results matching ""

    No results matching ""