Using the new preview route to show the attachment in webui

This commit is contained in:
Eike Kettner 2020-02-08 18:01:39 +01:00
parent 8908ad2561
commit 533396d386
2 changed files with 6 additions and 6 deletions

View File

@ -32,8 +32,6 @@ considering docspell at the moment. Hopefully they will be resolved
eventually….
- Only PDF files possible for now.
- The PDF view in the Web-UI relies on the browsers capabilities.
Sadly, not all browsers can display PDF files. Some may require
extra plugins. And it's especially sad, that mobile browsers wont't
display the files. It works with the major desktop browsers
(firefox, chromium), though.
- No fulltext search implemented. This currently has very low
priority, because I myself never needed it. Open an issue if you
find it important.

View File

@ -1202,7 +1202,9 @@ renderAttachmentView model pos attach =
, ( "invisible hidden", isAttachMetaOpen model attach.id )
]
]
[ embed [ src fileUrl, type_ attach.contentType ]
[ iframe
[ src (fileUrl ++ "/view")
]
[]
]
, div