]> source.dussan.org Git - redmine.git/commitdiff
Fixed that REST Uploads fail with fastcgi (#10832).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 8 May 2012 10:11:09 +0000 (10:11 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 8 May 2012 10:11:09 +0000 (10:11 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9652 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/attachments_controller.rb

index a5abd6e1275afd12b29ca38ba42a68661b526d53..a52024d14ae10aea55380734b94e2d2f672ba850 100644 (file)
@@ -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)