uploadResourcesFromUrl

Function

Given an Item and an array of resources, upload them

Parameters

Parameter Type Default Notes
itemModel Required IModel

Item add the resource to

resources Required IItemResource[]

Array of resources, with urls, to upload to the item

requestOptions Required IHubRequestOptions

Available requestOptions

Property Type Notes
authentication Optional ArcGISIdentityManager
fetch Optional function(input: RequestInfo, init: RequestInit) : Promise<Response>

The implementation of fetch to use. Defaults to a global fetch.

hubApiUrl Optional string
isPortal Optional boolean
portalSelf Optional IHubRequestOptionsPortalSelf

Returns

Promise<any[]>

Function defined in common/src/resources/upload-resources-from-url.ts:12