mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
Pass mime_type with files
This commit is contained in:
parent
bd7c8ed47d
commit
553eb54317
@ -985,7 +985,9 @@ def run_workflows(
|
|||||||
)
|
)
|
||||||
if action.webhook_include_document:
|
if action.webhook_include_document:
|
||||||
with open(document.source_path, "rb") as f:
|
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(
|
httpx.post(
|
||||||
action.webhook_url,
|
action.webhook_url,
|
||||||
data=data,
|
data=data,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user