Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fixes status payload filename after splitting

Trenton Holmes61f7e73961f7
diff --git a/src/documents/tasks.py b/src/documents/tasks.py
index 77b48e33d..34b75ce12 100644
--- a/src/documents/tasks.py
+++ b/src/documents/tasks.py
@@ -164,7 +164,7 @@ def consume_file(
# notify the sender, otherwise the progress bar
# in the UI stays stuck
payload = {
- "filename": override_filename,
+ "filename": override_filename or path.name,
"task_id": task_id,
"current_progress": 100,
"max_progress": 100,