mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 01:26:47 +01:00
todo note #520
This commit is contained in:
parent
887dd122fe
commit
7d67766508
1 changed files with 2 additions and 0 deletions
|
|
@ -291,6 +291,8 @@ class DocumentViewSet(RetrieveModelMixin,
|
||||||
handle = GnuPG.decrypted(doc.thumbnail_file)
|
handle = GnuPG.decrypted(doc.thumbnail_file)
|
||||||
else:
|
else:
|
||||||
handle = doc.thumbnail_file
|
handle = doc.thumbnail_file
|
||||||
|
# TODO: Send ETag information and use that to send new thumbnails
|
||||||
|
# if available
|
||||||
return HttpResponse(handle,
|
return HttpResponse(handle,
|
||||||
content_type='image/png')
|
content_type='image/png')
|
||||||
except (FileNotFoundError, Document.DoesNotExist):
|
except (FileNotFoundError, Document.DoesNotExist):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue