Skip to main content

UploadPart

Uploads a part in a multipart upload.

note

In this operation, you provide new data as a part of an object in your request. However, you have an option to specify your existing Amazon S3 object as a data source for the part you are uploading. To upload a part from an existing object, you use the UploadPartCopy operation.

Properties

NameDescriptionRequiredType
BodyObject dataYesBinary
BucketNameThe name of the bucket to which the multipart upload was initiatedYesstring
ContentLengthSize of the body in bytes. This parameter is useful when you cannot determine the size of the body prior to sendingYesnumber
ContentMD5The base64-encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from AWS SDKsNostring
KeyObject key for which the multipart upload was initiatedYesstring
PartNumberPart number of part being uploaded. This is a positive integer between 1 and 10,000Yesinteger
UploadIdUpload ID identifying the multipart upload whose part is being uploadedYesstring
SSECustomerAlgorithmSpecifies the algorithm to use to when encrypting the object. Not supported for directory bucketsNostring
SSECustomerKeySpecifies the customer-provided encryption key for Amazon S3 to use in encrypting data. Not supported for directory bucketsNostring
SSECustomerKeyMD5Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Not supported for directory bucketsNostring
RequestChargedIf present, indicates that the requester was successfully charged for the request

Valid values: requester
Nostring
x-amz-checksum-crc32Base64 encoded, 32-bit CRC32 checksum of the object. Used as a data integrity checkNostring
x-amz-checksum-crc32cBase64 encoded, 32-bit CRC32C checksum of the object. Used as a data integrity checkNostring
x-amz-checksum-crc64nvmeBase64 encoded, 64-bit CRC64NVME checksum of the part. Used as a data integrity checkNostring
x-amz-checksum-sha1Base64 encoded, 160-bit SHA1 digest of the object. Used as a data integrity checkNostring
x-amz-checksum-sha256Base64 encoded, 256-bit SHA256 digest of the object. Used as a data integrity checkNostring
x-amz-expected-bucket-ownerThe account ID of the expected bucket owner. Request fails with 403 Forbidden if the ID doesn't match the actual ownerNostring
x-amz-request-payerConfirms that the requester knows that they will be charged for the request. Not supported for directory buckets

Valid values: requester
Nostring
x-amz-sdk-checksum-algorithmAlgorithm used to create the checksum when using the SDK. Must match the checksum algorithm from CreateMultipartUpload request

Valid values: CRC32 | CRC32C | SHA1 | SHA256 | CRC64NVME
Nostring
x-amz-server-side-encryption-customer-algorithmSpecifies the algorithm to use when encrypting the object (e.g., AES256). Not supported for directory bucketsNostring
x-amz-server-side-encryption-customer-keyCustomer-provided encryption key for Amazon S3 to use in encrypting data. Must be the same key specified in the initiate multipart upload request. Not supported for directory bucketsNostring
x-amz-server-side-encryption-customer-key-MD5MD5 digest of the encryption key according to RFC 1321. Not supported for directory bucketsNostring