Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

cancelRequest(fileID)

Updated on July 20, 2021

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

NameTypeDescriptionRequired
fileIDstringThe 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');

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us