diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-05-08 10:11:09 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-05-08 10:11:09 +0000 |
commit | 1ad003dcc77422bdcfb122df4d7a5cd671b5103e (patch) | |
tree | 6af07b6fd416f4a51e77ffdef205e5da62f977e7 | |
parent | 7b6d11ed6abf1ae7c96c675b8829bdc31b884d53 (diff) | |
download | redmine-1ad003dcc77422bdcfb122df4d7a5cd671b5103e.tar.gz redmine-1ad003dcc77422bdcfb122df4d7a5cd671b5103e.zip |
Fixed that REST Uploads fail with fastcgi (#10832).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9652 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/controllers/attachments_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index a5abd6e12..a52024d14 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) |