Project

General

Profile

Defect #33752 » big_files_upload.diff

Karel Pičman, 2020-07-20 08:54

View differences:

app/controllers/attachments_controller.rb (working copy)
105 105
      return
106 106
    end
107 107

  
108
    @attachment = Attachment.new(:file => request.raw_post)
108
    @attachment = Attachment.new(:file => request.body)
109 109
    @attachment.author = User.current
110 110
    @attachment.filename = params[:filename].presence || Redmine::Utils.random_hex(16)
111 111
    @attachment.content_type = params[:content_type].presence
(1-1/5)