Skip to content

S3 extension misuses AWS SDK to get content size #93

Open
@zyga

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions