forked from Gitlink/forgeplus
pdf在线预览
This commit is contained in:
parent
5db22de6eb
commit
7d320b0857
|
@ -792,7 +792,7 @@ class MemosService
|
|||
attachments.each do |attach|
|
||||
attachments_list << {:id => attach.id,
|
||||
:title => attach.filename,
|
||||
:url => "/attachments/download/" + "#{attach.id}" + "/" + "#{attach.filename}",
|
||||
:url => "/attachments/download/" + "#{attach.id}" + "/" + "#{attach.filename}#{attach.is_pdf? ? "?disposition=inline" : ""}",
|
||||
:filesize => number_to_human_size(attach.filesize,significant: false, precision: 2)}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue