Leadtools.Documents Namespace : AbortableJQueryPromise Interface |
function Leadtools.Documents.AbortableJQueryPromise()
Because the UploadFile method is actually an encapsulation of the BeginUpload and UploadDocument methods together, AbortUploadDocument cannot be called if the upload needs to be stopped - the Uri is not known.
For this reason, instead of a normal Promise object, a AbortableJQueryPromise is returned, which includes a method Abort that can be called from the Promise.
Refer to Promises in Documents Library Service for more information.