Fixed that REST Uploads fail with fastcgi in 1.4-stable (#10832).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.4-stable@9653 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-05-08 10:39:42 +00:00
parent fa4fdf91a4
commit eb53d600c9
2 changed files with 10 additions and 5 deletions
+1 -1
View 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)