sonata-project / SonataMediaBundle

Symfony SonataMediaBundle
https://docs.sonata-project.org/projects/SonataMediaBundle
MIT License
451 stars 495 forks source link

Amazon AES256 not set property #2294

Closed mpoiriert closed 2 years ago

mpoiriert commented 2 years ago

The AES256 value is set via encryption but the configuration from Amazon is named ServerSideEncryption

https://github.com/sonata-project/SonataMediaBundle/blob/dd53b0a6f5c7df3eab29a7393b597a03a2298c9c/src/Metadata/AmazonMetadataBuilder.php#L104

From https://docs.aws.amazon.com/AmazonS3/latest/userguide/specifying-s3-encryption.html

$result = $s3->putObject([ 'Bucket' => $bucket, 'Key' => $keyname, 'SourceFile' => $filepath, 'ServerSideEncryption' => 'AES256', ]);

VincentLanglet commented 2 years ago

HI @mpoiriert, can you provide a PR with the fix ? :)

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.