Provide filename for recognizer server

This commit is contained in:
Martynas Bagdonas 2021-05-25 10:15:42 +03:00
parent b2acb5e339
commit faec1f1dee

View file

@ -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;