Pass mime_type with files

This commit is contained in:
shamoon 2024-11-25 16:00:19 -08:00
parent bd7c8ed47d
commit 553eb54317
No known key found for this signature in database

View File

@ -985,7 +985,9 @@ def run_workflows(
)
if action.webhook_include_document:
with open(document.source_path, "rb") as f:
files = {"file": (document.original_filename, f)}
files = {
"file": (document.original_filename, f, document.mime_type),
}
httpx.post(
action.webhook_url,
data=data,