createItemFromFile

Function

Creates an item in online from a local file/item. Upload is multithreaded as the item is chunked up.

  • createItemFromFile(item: IItemAdd, requestOptions: IUserRequestOptions) : Promise<ICreateItemResponse>

Parameters

Parameter Type Default Notes
item Required IItemAdd

Item to be uploaded into online.

requestOptions Required IUserRequestOptions

Available requestOptions

Property Type Notes

Returns

{Promise} Newly created item id

Promise<ICreateItemResponse>
Property Type Notes

Function defined in common/src/items/create-item-from-file.ts:23