uploadImageResource

Function

Given an item, and owner, add a image resource to the item and returns its url

  • uploadImageResource(id: string, owner: string, file: any, filename: string, ro: IUserRequestOptions, prefix: string) : Promise<string>

Parameters

Parameter Type Default Notes
id Required string
owner Required string
file Required any
filename Required string
ro Required IUserRequestOptions
prefix Optional string ""

Returns

Promise<string>

Function defined in common/src/items/uploadImageResource.ts:16