mirror of
https://github.com/redmine/redmine.git
synced 2026-01-05 23:30:42 +01:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user