diff options
author | David Hewitt <davidmhewitt@users.noreply.github.com> | 2022-11-13 05:57:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-13 06:57:10 +0100 |
commit | 290d78cea4850982a2843dc1a2954f0d66fe58d8 (patch) | |
tree | ba31b11b4fb913c71057ad36f99de5f136c3c1cc /config/initializers/assets.rb | |
parent | cf77d938f8fff0193225781f77f03e1616acc88f (diff) |
Allow unsetting x-amz-acl S3 Permission headers (#20510)
Some "S3 Compatible" storage providers (Cloudflare R2 is one such example) don't support setting ACLs on individual uploads with the `x-amz-acl` header, and instead just have a visibility for the whole bucket. To support uploads to such providers without getting unsupported errors back, lets use a black `S3_PERMISSION` env var to indicate that these headers shouldn't be sent. This is tested as working with Cloudflare R2.
Diffstat (limited to 'config/initializers/assets.rb')
0 files changed, 0 insertions, 0 deletions