Getting the content size should not happen with `s3Object.getObjectMetadata` as that is too late, and we're already `GET`ting the whole blob needlessly. From my local patch: ```java + var req = new GetObjectMetadataRequest(s3Properties.getBucketName(), key); + var objMeta = amazonS3.getObjectMetadata(req); ``` This way we can get the meta-data in a simple HEAD request, which is not wasting bandwidth.
Getting the content size should not happen with
s3Object.getObjectMetadataas that is too late, and we're alreadyGETting the whole blob needlessly.From my local patch:
This way we can get the meta-data in a simple HEAD request, which is not wasting bandwidth.