use complete content attachment disposition including file name

pull/7456/head
Markus Kahl 5 years ago
parent e94b98794f
commit 3240d3b24a
  1. 2
      app/models/attachment.rb

@ -81,7 +81,7 @@ class Attachment < ActiveRecord::Base
end
def content_disposition
inlineable? ? 'inline' : 'attachment'
inlineable? ? "inline" : "attachment; filename=#{self[:file]}"
end
def visible?(user = User.current)

Loading…
Cancel
Save