add support for archive files.

This commit is contained in:
Jonas Winkler
2020-11-25 14:47:01 +01:00
parent 9a33f191a7
commit 8069c2eb6a
4 changed files with 40 additions and 9 deletions

View File

@@ -141,6 +141,9 @@ class DocumentParser(LoggingMixin):
self.tempdir = tempfile.mkdtemp(
prefix="paperless-", dir=settings.SCRATCH_DIR)
def get_archive_path(self):
return None
def get_thumbnail(self):
"""
Returns the path to a file we can use as a thumbnail for this document.