Open kristena11 opened 7 years ago
I figured it out I had to add my s3 credentials to the blog_entry_image.rb:
app/models/spree/blog_entry_image.rb
class Spree::BlogEntryImage < Spree::Image has_attached_file :attachment, :styles => {:mini => '48x48#', :normal => '200x200>', :large => '600x600>'}, :default_style => :large, :url => "/assets/blog_entry_images/:id/:style/:basename.:extension", :path => ":rails_root/public/assets/blog_entry_images/:id/:style/:basename.:extension" , storage: :s3, s3_credentials: {access_key_id: 'xxx', secret_access_key: 'xxx'}, bucket: 'xxx' end
I am getting an amazon s3 error when trying to add an image or edit a post. This is working fine everywhere else in my app, I can upload images and they save to s3. Is there a config file I need to add to get this extension to use s3?