fetchAndUploadThumbnail

Function

Fetch image from a url, then upload to an item as it's thumbnail

  • fetchAndUploadThumbnail(options: {
    authentication:
    UserSession
    fileName:
    string
    id:
    string
    owner:
    string
    url:
    string
    }) : Promise<any>

Parameters

Parameter Type Default Notes
options Required {
authentication:
UserSession
fileName:
string
id:
string
owner:
string
url:
string
}

Returns

Promise<any>

Function defined in common/src/resources/fetch-and-upload-thumbnail.ts:9