fetchAndUploadResource

Function

Fetch image from a url, and upload as a resource

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

Parameters

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

Returns

Promise<IItemResourceResponse>
Property Type Notes

Function defined in packages/common/src/resources/fetch-and-upload-resource.ts:12