moto said 200 OK and handed me zero bytes of S3's new GetPart
S3 multipart upload parts can now be read before the upload completes, with the new GetPart API. The IAM action, the cutoff date, and the moto trap.
By Meet ModiThe first thing I did with S3's new GetPart call was point it at moto, the library most Python projects use to fake S3 in tests. It answered 200 OK. The body was 0 bytes. There was no ETag and no status header. moto does not know GetPart exists, so it quietly handled the request as a ListParts call, and a test written against it would have passed while reading nothing.
The feature itself is simple to state. An S3 multipart upload used to be invisible until CompleteMultipartUpload: you could list the parts, but not read them. Since November 29, 2026, a new operation called GetPart reads a whole part, or a byte range inside it, while the upload is still open. A new event tells you when each part lands. The fine print is where the work is: a new IAM action, a cutoff date, no SSE-C, general purpose buckets only, and no word on what a read sees when the part is overwritten mid-flight. Nothing here was run against real AWS. That needs an account and request charges, so the hands-on part is the SDK, the CLI and a local mock.
How does S3 multipart upload work, and what changed
A multipart upload has three steps. CreateMultipartUpload hands you an upload ID. UploadPart sends numbered parts, 1 to 10,000, in any order and in parallel. CompleteMultipartUpload takes the list of parts and, in the API reference's words, "concatenates all the parts in ascending order by part number to create a new object." Until that last call there is no object. GetObject has had a partNumber parameter for years, but it only reads parts of completed objects. Ask for a part of an upload that is still open and you get NoSuchKey.
The What's New post from November 29 says S3 "now makes each part of a multipart upload readable as soon as it arrives, before the object upload completes." The use cases it names are "media ingest, transcoding, analytics, and AI transcription": jobs where a big file is still uploading and the next stage could already be chewing on the first gigabyte. Before this, the usual workaround was to upload chunks as separate objects and stitch them later, or to run a second stream next to the upload. The announcement also says it works "without changing how you upload it", which is true for the uploader. The reader needs new permissions and a new call.
For what it's worth, S3 is not first here. Wasabi documents an "Active Read with MultiPartUpload" feature for the same job.
The GetPart API, request and response
The GetPart API reference describes it as "Retrieves a single part of an in-progress or completed multipart upload." The request is a GET on the object key with three query parameters. The bare part parameter is what tells S3 this is GetPart and not GetObject:
GET /{Key+}?part&partNumber=3&uploadId=EXAMPLEUPLOADID HTTP/1.1
Host: my-bucket.s3.amazonaws.com
Range: bytes=0-1048575 (optional, one range only)
x-amz-checksum-mode: ENABLED (optional)A full part comes back as 200 OK, a valid byte range as 206 Partial Content. The response carries the part's ETag, its checksums if it was uploaded with any, and the new header that matters most:
- x-amz-multipart-upload-status: IN_PROGRESS. CompleteMultipartUpload has not been called, and the docs say the part "can be overwritten by a subsequent UploadPart call with the same part number."
- x-amz-multipart-upload-status: COMPLETED. The part "is immutable, and the full object exists."
- NoSuchPart (404): "Either the part has not been uploaded, or the part number exceeds the number of parts in the completed object."
- NoSuchUpload (404): the upload ID is wrong, or the upload was aborted or completed.
So GetPart also works on completed uploads, as long as you still have the upload ID. That makes it a second way to read part N of a finished object, next to GetObject with partNumber.
I tried it: the SDK, the CLI and moto
First, whether your tools know about it. The botocore changelog adds GetPart in 1.44.14, and the AWS CLI v2 changelog in 2.42.6, both on November 29. The CLI release also adds --upload-id and --part-number to aws s3 presign. The CLI on the runner I used was a few patch versions behind:
$ aws --version
aws-cli/2.42.1 Python/3.14.10 Linux/7.0.0-1020-azure exe/x86_64.ubuntu.26
$ aws s3api get-part help
aws: [ERROR]: An error occurred (ParamValidation): argument operation: Found invalid choice 'get-part'A fresh botocore (1.44.17) does have it, as its own operation. GetObject's input shape still has no uploadId member. These are the only operations that take an upload ID:
operations whose input has UploadId:
AbortMultipartUpload CompleteMultipartUpload GetPart ListParts UploadPart UploadPartCopy
GetPart GET /{Bucket}/{Key+}?part
Bucket, Key, UploadId (required), PartNumber (required, 1 to 10,000),
Range, RequestPayer, ExpectedBucketOwner, ChecksumMode
errors: NoSuchBucket, NoSuchUpload, NoSuchPart, InvalidObjectStateSigning a presigned URL needs no network, so that part runs with fake credentials. This is the URL a downstream worker would get, with the bare part= parameter first:
c = boto3.client("s3", region_name="us-east-1",
aws_access_key_id="AKIAEXAMPLE", aws_secret_access_key="example")
c.generate_presigned_url("get_part", Params={
"Bucket": "my-bucket", "Key": "raw/talk.mp4",
"UploadId": "EXAMPLEUPLOADID", "PartNumber": 3}, ExpiresIn=300)
# https://my-bucket.s3.amazonaws.com/raw/talk.mp4?part=&uploadId=EXAMPLEUPLOADID
# &partNumber=3&X-Amz-Algorithm=AWS4-HMAC-SHA256&...&X-Amz-Expires=300...Then moto 5.2.6, in-process, with fake credentials. Create a bucket, start an upload, send one 5 MiB part, then try both ways of reading it:
uploaded part 1, etag "b8fc857a25e7958868c2f003d5e0952d"
ListParts: [(1, 5242880)]
GetPart -> 200 {'x-amz-storage-class': 'STANDARD', 'server': 'amazon.com', ...} 0
GetObject partNumber=1 (in-progress) -> NoSuchKey The specified key does not exist.The GetObject line is correct: that is what real S3 says too, and why GetPart exists. The GetPart line is the trap. In moto's S3 responses module, a GET on a key with an uploadId query parameter goes straight to list_parts(), whatever else is in the query string. What reached the client was a 200 and a body that read as 0 bytes. No exception. If your test checks that the call succeeded rather than what came back, it passes. Assert on the body length and on MultipartUploadStatus until moto adds the operation.
S3 multipart upload permissions for GetPart
This is the part most people will trip on first. From the API reference: s3:GetObject is required for unversioned uploads, s3:GetObjectVersion for versioned ones, and "For all requests to in-progress multipart uploads, the s3:GetIncompleteUpload permission is also required." The user guide adds a detail worth reading twice: versioned means "a bucket that was versioning-enabled when the upload was initiated", not when you read it.
{
"Effect": "Allow",
"Action": ["s3:GetObject", "s3:GetIncompleteUpload"],
"Resource": "arn:aws:s3:::my-bucket/raw/*"
}One oddity: when this was written, the IAM Service Authorization Reference page for S3 had no match for GetIncompleteUpload, even though the S3 docs require it. If you validate policies with a tool that reads that reference, expect it to call the action unknown until the page catches up.
What you can do with it
The shape AWS is pushing is event driven. Subscribe to the new s3:MultipartUpload:PartUploaded event through S3 Event Notifications or EventBridge. Its payload has a multipartUploadEventData block with uploadId, partNumber, partSize and partETag, which is everything GetPart needs. A worker gets the event, calls GetPart, processes the bytes, done. There are sibling events for UploadPartCopy (PartCopied) and for an abort (Aborted), so a consumer can also stop work on an upload that died.
- Start transcoding or transcribing a long recording while the tail is still uploading.
- Hash or virus-scan each part as it lands instead of re-reading the whole object afterwards.
- Give a downstream service a short-lived presigned GetPart URL per part, with aws s3 presign --upload-id --part-number on CLI 2.42.6 or newer.
- Read just the header of the first part (a Range on part 1) to validate a file format before the upload finishes, and abort early if it is wrong.
The last one is the same idea as checking what a file really is before trusting its name, which I went through for browser uploads in the SVG that image/* let in. The difference here is that you can do it on the server before the upload is even done.
The catch: overwrites, the cutoff date, and no price
Parts of an in-progress upload are not stable. UploadPart has always allowed it: "If you upload a new part using the same part number that was used with a previous part, the previously uploaded part is overwritten." The GetPart docs repeat that IN_PROGRESS parts can be overwritten, and then say nothing about what a reader sees if that happens during its read. GetPart has no If-Match header, so you cannot ask S3 to refuse the read if the part changed. The best you can do is record the ETag from the event, compare it with the ETag GetPart returns, and treat a mismatch as "start over for this part". If your uploader retries parts (and the SDK transfer managers do), that check is not optional.
- Old uploads are out. GetPart "is only supported for multipart uploads that were initiated after November 29, 2026, 00:00 UTC." A long-running upload started before that will not work.
- Bucket types: general purpose only. Not directory buckets (S3 Express One Zone), not Outposts, not Access Points.
- Encryption: SSE-S3, SSE-KMS and DSSE-KMS work, but do not send the encryption headers or you get a 400. SSE-C is not supported at all.
- Completed uploads with gaps in part numbers are not supported. Use GetObject.
- Completed objects in Glacier Flexible Retrieval, Glacier Deep Archive or Intelligent-Tiering return InvalidObjectState, and restore is not supported for GetPart.
- One byte range per request. No multi-range.
And the things the sources do not say at all: how GetPart is billed (the S3 pricing page does not mention it), how soon a part is readable after UploadPart returns, whether PartUploaded events arrive in order or more than once, and how long GetPart keeps working on a completed upload's ID. S3 event notifications have always been at-least-once, so build the consumer to handle duplicates regardless. I would not put this on a hot path until someone publishes a real read-while-overwrite test.
Questions people are asking
Can you read an S3 multipart upload before it is complete?
Yes, since November 29, 2026, with the new GetPart API. It reads a full part or one byte range of a part while the upload is still open. It only works for uploads started after November 29, 2026 at 00:00 UTC, in general purpose buckets, and the caller needs the s3:GetIncompleteUpload permission on top of s3:GetObject.
What permission does S3 GetPart need?
s3:GetObject for unversioned uploads or s3:GetObjectVersion for versioned ones, plus s3:GetIncompleteUpload whenever the upload is still in progress. Versioned means the bucket had versioning enabled when the upload was initiated. A completed upload does not need the extra action. Some policy validators may not know GetIncompleteUpload yet.
What is the difference between GetPart and GetObject with partNumber?
GetObject with partNumber only reads parts of completed objects, and returns NoSuchKey for an upload that is still open. GetPart takes an uploadId and reads parts of in-progress or completed uploads. It also returns the x-amz-multipart-upload-status header, which tells you whether the part can still be overwritten.
Does moto support S3 GetPart?
Not in moto 5.2.6. It does not raise an error either: a GetPart request is routed to its ListParts handler, and the client sees HTTP 200 with an empty body and no ETag. Tests that only check for success will pass while reading nothing, so assert on the body length and status header.
How do I know when an S3 multipart upload part is ready to read?
Subscribe to the s3:MultipartUpload:PartUploaded event through S3 Event Notifications or EventBridge. Its multipartUploadEventData block carries the uploadId, partNumber, partSize and partETag, which is what GetPart needs. AWS does not state ordering or delivery guarantees for this event, so handle duplicates and out-of-order parts.
What happens if a part is overwritten while I read it?
AWS does not say. The docs only state that IN_PROGRESS parts can be overwritten by another UploadPart with the same number. GetPart has no If-Match header, so compare the ETag it returns with the ETag from the PartUploaded event, and re-read or skip the part when they differ.
Which AWS CLI version has get-part?
AWS CLI v2 2.42.6 and newer, released November 29, 2026. Older versions fail with "Found invalid choice 'get-part'". The same release adds --upload-id and --part-number to aws s3 presign. For Python, botocore 1.44.14 or newer; for JavaScript, @aws-sdk/client-s3 3.1180.0 or newer.
- Amazon S3 now supports reading parts of multipart uploads in progress, AWS What's New
- GetPart, Amazon S3 API Reference, AWS
- Downloading multipart upload parts, Amazon S3 User Guide
- Required permissions for Amazon S3 API operations, Amazon S3 User Guide
- Event notification types and destinations, Amazon S3 User Guide
- UploadPart, Amazon S3 API Reference, AWS
- botocore CHANGELOG (1.44.14), GitHub, boto/botocore
- AWS CLI v2 CHANGELOG (2.42.6), GitHub, aws/aws-cli
- Active Read with MultiPartUpload, Wasabi
More Posts
Next.js 16.5 compiles 4.2x faster. This blog got 1.35x
Next.js 16.5 on a 92-page static site with 2 cores: cold Turbopack compile went from 7.0 s to 5.2 s with 21% less memory. Not 4x. Warm builds didn't move.
I made a post-quantum SSH key. GitHub never answered it
A post-quantum SSH key is one ssh-keygen command in OpenSSH 10.6. GitHub, GitLab, Bitbucket, Codeberg and sourcehut can't use it, and GitHub just hangs.
I painted over a 4-digit code and read it back from the pixels outside the box
Can you unredact an image? From lossy WebP, yes: I got a hidden 4-digit code back from pixels 96 px outside the box. JPEG with a 16 px margin leaked nothing.