From 7146a5f4fc42646f8599ed8bd815a3acb3e72b00 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 14 Mar 2025 07:44:40 -0700 Subject: [PATCH] Fix: use correct filename with webhook (#9392) --- src/documents/signals/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/signals/handlers.py b/src/documents/signals/handlers.py index 4eb7f72cc..407735375 100644 --- a/src/documents/signals/handlers.py +++ b/src/documents/signals/handlers.py @@ -1162,7 +1162,7 @@ def run_workflows( ) as f: files = { "file": ( - document.original_filename, + filename, f.read(), document.mime_type, ),