Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Specifying server-side encryption and Reduced Redundancy storage #138

ykessler opened this Issue · 4 comments

2 participants


Is it possible to include options for specifying server-side encryption and Reduced Redundancy Storage (RRS)?


I am also interested in knowing this. Have you found the answer, by any chance?


@elsurudo I never was able to do it through s3_direct_upload - I solved it by just immediately applying server-side encryption and Reduced Redundancy Storage to new items through my server side AWS library as soon as the upload was complete.


@ykessler Well brother, I figured it out if you want to simplify your code a bit :)

Add the following option to your s3_uploader_form call to generate the policy properly:
conditions: [{ 'x-amz-server-side-encryption' => 'AES256'}]

Then, add the following inside your form so S3 knows you want to encrypt:
<%= hidden_field_tag 'x-amz-server-side-encryption', 'AES256' %>

That's it!

EDIT: Furthermore, you should be able to set reduced-redundancy-storage using the same method, using a key of "x-ams-storage-class" and a value of "REDUCED_REDUNDANCY".

See here for docs:


@elsurudo Beautiful- thanks for the update, I'll try it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.