mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 23:35:22 +01:00
explicitly add txt, md, and csv types for consumer and viewer; fix thumbnail generation
This commit is contained in:
parent
d6fedbec52
commit
4849249d86
4 changed files with 63 additions and 22 deletions
|
|
@ -48,6 +48,9 @@ class FetchView(SessionOrBasicAuthMixin, DetailView):
|
|||
Document.TYPE_JPG: "image/jpeg",
|
||||
Document.TYPE_GIF: "image/gif",
|
||||
Document.TYPE_TIF: "image/tiff",
|
||||
Document.TYPE_CSV: "text/csv",
|
||||
Document.TYPE_MD: "text/markdown",
|
||||
Document.TYPE_TXT: "text/plain"
|
||||
}
|
||||
|
||||
if self.kwargs["kind"] == "thumb":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue