Merge branch 'master' into dev

This commit is contained in:
jonaswinkler
2021-01-30 16:06:42 +01:00
19 changed files with 401 additions and 257 deletions

View File

@@ -398,6 +398,7 @@ class PostDocumentView(APIView):
with tempfile.NamedTemporaryFile(prefix="paperless-upload-",
dir=settings.SCRATCH_DIR,
buffering=0,
delete=False) as f:
f.write(doc_data)
os.utime(f.name, times=(t, t))