mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Also provide the original file name to the post consumption script
This commit is contained in:
		| @@ -171,6 +171,7 @@ into paperless. It receives the following environment variables: | ||||
| * ``DOCUMENT_THUMBNAIL_URL`` | ||||
| * ``DOCUMENT_CORRESPONDENT`` | ||||
| * ``DOCUMENT_TAGS`` | ||||
| * ``DOCUMENT_ORIGINAL_FILENAME`` | ||||
|  | ||||
| The script can be in any language, but for a simple shell script | ||||
| example, you can take a look at `post-consumption-example.sh`_ in this project. | ||||
|   | ||||
| @@ -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( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Trenton Holmes
					Trenton Holmes