Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.
This repository was archived by the owner on Nov 11, 2025. It is now read-only.

S3 extension misuses AWS SDK to get content size #93

Description

@zyga

Getting the content size should not happen with s3Object.getObjectMetadata as that is too late, and we're already GETting the whole blob needlessly.

From my local patch:

+        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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions