updateAttachment
FunctionupdateAttachment(requestOptions: IUpdateAttachmentOptions): Promise<{ updateAttachmentResult: IEditFeatureResult }>
Update a related attachment to a feature by id. See Update Attachment for more information.
import { updateAttachment } from '@esri/arcgis-rest-feature-service';
//
updateAttachment({
url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/ServiceRequest/FeatureServer/0",
featureId: 8484,
attachment: myFileInput.files[0],
attachmentId: 306
});
Parameters
Parameter | Type | Notes |
---|---|---|
request | IUpdateAttachmentOptions | Options for the request. |
Returns
Promise<{ updateAttachmentResult: IEditFeatureResult }>
A Promise that will resolve with the updateAttachment()
response.