Closed vincer closed 3 months ago
Thanks for the feature request. There is a feature freeze on resources so your request involving the Object resource would not be considered. Changes involving the HeadObject API would need to be implemented by the S3 team. Please consider opening an issue in our cross-SDK repository if you'd like someone to reach out to S3 on your behalf. The content-length
and content-range
is already returned in the HeadObject response so if you're request is for something beyond that, then please explain more about what that involves and what use case you are trying to address.
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.
Describe the feature
I'd like to inspect an object and get its part size as well as its total size in a single request. The API does expose this information. If a HEAD request (or GET) is made with
partNumber=1
, then the response will have acontent-length
header that has the size of the part as well as acontent-range
header that also has the size of the whole object. e.g.'content-range': 'bytes 0-400/5000'
In this example the full size of the object is 5000.
Currently boto3 doesn't have a way to get to this information easily with a single request. It only exposes the part size and not the whole object size. My workaround looks like this: