mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-03 01:56:16 +00:00
todo note #520
This commit is contained in:
@@ -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):
|
||||||
|
Reference in New Issue
Block a user