Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3 plugin compatibility #89

Open
berga opened this issue May 17, 2019 · 0 comments
Open

S3 plugin compatibility #89

berga opened this issue May 17, 2019 · 0 comments

Comments

@berga
Copy link

berga commented May 17, 2019

when I try to upload an image with s3 plugin enabled i got:

Completed 500 Internal Server Error in 54ms (ActiveRecord: 14.6ms)

ArgumentError (expected params[:body] to be a String or IO object, got value #<AttachmentPatch::PastedImage:0x00007fede92aace0 @raw=#<StringIO:0x00007fede92aac40>, @name="picture669-1.png"> (class: AttachmentPatch::PastedImage) instead.):
  plugins/amazon_s3/lib/amazon_s3/connection.rb:39:in `put'
  plugins/amazon_s3/lib/amazon_s3/patches/attachment_patch.rb:26:in `put_to_s3'
  lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb:92:in `block in save_attachments'
  lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb:88:in `each'
  lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb:88:in `save_attachments'
  plugins/clipboard_image_paste/lib/clipboard_image_paste/attachment_patch.rb:41:in `save_attachments_with_pasted_images'
  app/controllers/issues_controller.rb:165:in `update'
berga added a commit to berga/clipboard_image_paste that referenced this issue May 17, 2019
berga added a commit to berga/clipboard_image_paste that referenced this issue May 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant