mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-18 01:41:14 -06:00
Send webhook files as bytes
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user