Skip to content

Feature Request: Add S3Template upload ability of InputStream and content length #922

Open
@apetrelli

Description

@apetrelli

Type: Feature

I notice that, for a simple upload of an InputStream, an entire S3Resource has to be created along with the S3OutputStream. This results in putting all the data or in memory or to disk

It would be nice to have, in S3Operations and S3Template, an upload method that has the following signature:

S3Resource upload(String bucketName, String key, InputStream inputStream, long contentLength)

This should call S3Client.putObject with RequestBody.fromInputStream, that uses the input stream and the content length so not to read the file twice, or dump in memory or on file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: s3S3 integration related issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions