files: allow to show inline pdf in browser using embedded file from vcs
This commit is contained in:
parent
8838ed268c
commit
d0f96b7b7b
1 changed files with 1 additions and 0 deletions
|
|
@ -388,6 +388,7 @@ class FilesController(BaseRepoController):
|
|||
'image/png': ('image/png', 'inline'),
|
||||
'image/gif': ('image/gif', 'inline'),
|
||||
'image/jpeg': ('image/jpeg', 'inline'),
|
||||
'application/pdf': ('application/pdf', 'inline'),
|
||||
}
|
||||
|
||||
mimetype = file_node.mimetype
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue