Skip to content
Katrin edited this page Dec 22, 2015 · 1 revision

1. S 3 Picture Upload

  • founded by Amazon; one of their first products
  • we need an account for Amazon Web Services; for now we take Kathrin's
  • We follow this tutorial: https://devcenter.heroku.com/articles/direct-to-s3-image-uploads-in-rails
  • We make up a s3-bucket, that has to be unique: diversitytickets-event-images
  • aws-acces we get from Kathrin's account
  • bucket-region: eu-central-1
  • we add a new private method "set_s3_direct_post" to the EventsController
  • as we are not using Heroku local, we need get the information out of the .env files (as they are useless)
  • we put the environment variables in the development.rb file *also, the s3 class isn't initialized outside of Heroku