From faec1f1deeb01f0a1acf8196adc567d3c1ca1333 Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Tue, 25 May 2021 10:15:42 +0300 Subject: [PATCH] Provide filename for recognizer server --- chrome/content/zotero/xpcom/recognizePDF.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/zotero/xpcom/recognizePDF.js b/chrome/content/zotero/xpcom/recognizePDF.js index ca77385eaa..5f50294c53 100644 --- a/chrome/content/zotero/xpcom/recognizePDF.js +++ b/chrome/content/zotero/xpcom/recognizePDF.js @@ -419,6 +419,7 @@ Zotero.RecognizePDF = new function () { if (!filePath || !await OS.File.exists(filePath)) throw new Zotero.Exception.Alert('recognizePDF.fileNotFound'); let json = await extractJSON(filePath, MAX_PAGES); + json.fileName = OS.Path.basename(filePath); let containingTextPages = 0;