mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
DEBUG - force flush 2nd try
This commit is contained in:
@@ -381,9 +381,9 @@ class PostDocumentView(APIView):
|
||||
|
||||
with tempfile.NamedTemporaryFile(prefix="paperless-upload-",
|
||||
dir=settings.SCRATCH_DIR,
|
||||
buffering=0,
|
||||
delete=False) as f:
|
||||
f.write(doc_data)
|
||||
f.flush()
|
||||
os.utime(f.name, times=(t, t))
|
||||
|
||||
async_task("documents.tasks.consume_file",
|
||||
|
Reference in New Issue
Block a user