mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-16 00:36:22 +00:00
Pass mime_type with files
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user