Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async-aws-s3 adapter - send pre-calculated checksum #1743

Open
Nickolaus opened this issue Jan 16, 2024 · 0 comments
Open

async-aws-s3 adapter - send pre-calculated checksum #1743

Nickolaus opened this issue Jan 16, 2024 · 0 comments

Comments

@Nickolaus
Copy link

Feature Request

Q A
Flysystem Version 3.23.0
Adapter Name async-aws-s3 adapter
Adapter version 3.22.0

Scenario / Use-case

The async-aws-s3 adapter should, be able to send a pre-calculated checksum during upload.
See:
https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/s3-checksums.html

I have already tried this for SHA1 by adding ChecksumSHA1 to AVAILABLE_OPTIONS in the AsyncAwsS3Adapter and then invoke write with the following config:
['ChecksumSHA1' => base64_encode(sha1($content))]

According to aws docs this should work however it throws the following exception:
Value for x-amz-checksum-sha1 header is invalid.

Also tried without base64_encode but the result is the same.

It would be awesome if this feature could be supported, I would have created a PR but as stated above I (currently) cannot get it to work in the first place

Summary

Send pre-calculated checksum using async-aws-s3 adapter on writing to storage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant