Terminating an Upload
An ongoing or suspended file upload can be manually terminated. Once terminated, you will not be able to resume the upload.
The following sample code shows how to terminate an upload.
terminate() method to terminate an upload. An error will be returned if you attempt to terminate a finished upload.