mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-29 11:09:27 -05:00
Send webhook files as bytes
This commit is contained in:
parent
7677fdaade
commit
f5cd393822
@ -1044,7 +1044,11 @@ def run_workflows(
|
||||
"rb",
|
||||
) as f:
|
||||
files = {
|
||||
"file": (document.original_filename, f, document.mime_type),
|
||||
"file": (
|
||||
document.original_filename,
|
||||
f.read(),
|
||||
document.mime_type,
|
||||
),
|
||||
}
|
||||
send_webhook.delay(
|
||||
url=action.webhook.url,
|
||||
|
Loading…
x
Reference in New Issue
Block a user