ArcGISKit Documentation

Function add​Attachment(data:​name:​gis:​mime​Type:​)

public func addAttachment(
		data: Data,
		name: String,
		gis: GIS,
		mimeType: MediaType? = nil
	) 

Add an Attachment to this Feature.

Parameters

attachment

The data to upload.

name String

The name of the attachment. This MUST include the extension.

gis GIS

The GIS to use to authenticate.

Throws

AGKDataError.

Returns

A JSON response that describes whether the request succeeded or failed.