diff options
author | Go MAEDA <maeda@farend.jp> | 2021-05-11 05:35:19 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-05-11 05:35:19 +0000 |
commit | 6369d139dd1697a582daf102bdc7edc0101718b4 (patch) | |
tree | eb6712962faf95b7bdf2586d5ef0eb610289c036 /app | |
parent | 49e323ae7af2998fc2785319643a9ac5bc93c425 (diff) | |
download | redmine-6369d139dd1697a582daf102bdc7edc0101718b4.tar.gz redmine-6369d139dd1697a582daf102bdc7edc0101718b4.zip |
Uploading a big file fails with NoMemoryError (#33752).
Patch by Karel Pičman and Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@20993 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-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 1956f01e3..8e28194a3 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -105,7 +105,7 @@ class AttachmentsController < ApplicationController return end - @attachment = Attachment.new(:file => request.raw_post) + @attachment = Attachment.new(:file => request.body) @attachment.author = User.current @attachment.filename = params[:filename].presence || Redmine::Utils.random_hex(16) @attachment.content_type = params[:content_type].presence |