All Products
Search
Document Center

:What do I do if OSS returns the "NoSuchUpload" error code when I upload an object by using multipart upload?

Last Updated:Feb 13, 2023

Issue description

When an object is uploaded by using multipart upload or resumable upload, Object Storage Service (OSS) returns the "NoSuchUpload" error code. The following error message appears:

The specified upload does not exist. The upload ID may be invalid, or the upload may have been aborted or completed.

Causes

The object is not completely uploaded in a multipart upload or resumable upload request because the upload ID that is specified by calling the UploadPart operation does not exist.

Solutions

During multipart upload or resumable upload, check the returned results and make sure that HTTP status code 200 and the request ID are returned for the CompleteMultipartUpload operation. We recommend that you check whether the upload ID recorded when you call the UploadPart operation is valid or whether the upload that corresponds to the upload ID is complete. For more information, see InitiateMultipartUpload.

Additional information

The multipart upload process consists of the following steps:

  1. Initialize a multipart upload task: Call the ossClient.initiateMultipartUpload method to return the globally unique upload ID that is created by OSS.

  2. Upload parts: Call the ossClient.uploadPart method to upload the parts.

  3. Complete the multipart upload task: After all parts are uploaded, call the ossClient.completeMultipartUpload method to combine all parts into a complete object.

Applicable scope

  • OSS