A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
bugfix
Jonas Winkler1b0233418b03
diff --git a/src/documents/forms.py b/src/documents/forms.pyindex 912fd9673..38a95a068 100644--- a/src/documents/forms.py+++ b/src/documents/forms.py@@ -32,6 +32,9 @@ class UploadForm(forms.Form):t = int(mktime(datetime.now().timetuple()))+ os.makedirs(settings.SCRATCH_DIR, exist_ok=True)++ # TODO: dont just append pdf. This is here for taht weird regex check at the start of the consumer.with tempfile.NamedTemporaryFile(prefix="paperless-upload-", suffix=".pdf", dir=settings.SCRATCH_DIR, delete=False) as f:f.write(document)