Skip to content

S3 plugin compatibility #89

@berga

Description

@berga

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions