diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index a5abd6e..a52024d 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -67,7 +67,7 @@ class AttachmentsController < ApplicationController return end - @attachment = Attachment.new(:file => request.body) + @attachment = Attachment.new(:file => request.raw_post) @attachment.author = User.current @attachment.filename = Redmine::Utils.random_hex(16)