mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-01-04 12:36:07 +01:00
Also provide the original file name to the post consumption script
This commit is contained in:
parent
baeb2a074a
commit
9b24cf7591
2 changed files with 2 additions and 0 deletions
|
|
@ -203,6 +203,7 @@ class Consumer(LoggingMixin):
|
|||
script_env["DOCUMENT_TAGS"] = str(
|
||||
",".join(document.tags.all().values_list("name", flat=True)),
|
||||
)
|
||||
script_env["DOCUMENT_ORIGINAL_FILENAME"] = str(document.original_filename)
|
||||
|
||||
try:
|
||||
Popen(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue