mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 08:15:27 +01:00
test cases
This commit is contained in:
parent
7bca5bf40e
commit
97e96d02f2
2 changed files with 62 additions and 1 deletions
|
|
@ -68,7 +68,8 @@ class TikaDocumentParser(DocumentParser):
|
|||
url = gotenberg_server + "/convert/office"
|
||||
|
||||
self.log("info", f"Converting {document_path} to PDF as {pdf_path}")
|
||||
files = {"files": (file_name, open(document_path, "rb"))}
|
||||
files = {"files": (file_name or os.path.basename(document_path),
|
||||
open(document_path, "rb"))}
|
||||
headers = {}
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue