Skip to content

Instantly share code, notes, and snippets.

@zev
Created September 3, 2010 10:21
Show Gist options
  • Save zev/563717 to your computer and use it in GitHub Desktop.
Save zev/563717 to your computer and use it in GitHub Desktop.
How to send the hexdigest safely in s3
S3Object.store('lambda.jpg', d, 'mybucket', :content_type => 'image/jpeg', :content_md5 => Base64.encode64(Digest::MD5.digest(d)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment