Send webhook files as bytes

This commit is contained in:
shamoon 2025-01-14 22:48:37 -08:00
parent 7677fdaade
commit f5cd393822
No known key found for this signature in database

View File

@ -1044,7 +1044,11 @@ def run_workflows(
"rb", "rb",
) as f: ) as f:
files = { files = {
"file": (document.original_filename, f, document.mime_type), "file": (
document.original_filename,
f.read(),
document.mime_type,
),
} }
send_webhook.delay( send_webhook.delay(
url=action.webhook.url, url=action.webhook.url,