cancelRequest(fileID)
Cancels an ongoing XML HTTP Request (XHR) for a file that is being uploaded to a server or linked to a case.
Returns
Not applicable.
Parameters
Name | Type | Description | Required |
fileID | string | The unique ID of the file that is used to obtain the cancel source object to cancel the ongoing XHR request. | ✅ |
Usage example
In this example, the API cancels the request that the file with the ID
123456
be uploaded to the server.
PCore.getAttachmentUtils().cancelRequest('123456');
Previous topic APIs in the AttachmentUtils module Next topic deleteAttachment(attachmentID, context)