From efcfaf95e8de14a4e42833738cadb5124ea24519 Mon Sep 17 00:00:00 2001 From: Andrey Yumatov Date: Fri, 24 Dec 2021 16:50:23 +0300 Subject: [PATCH] [fix] fileType instead parsing url to save doc in node.js (take fileType out of body) --- web/documentserver-example/nodejs/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/documentserver-example/nodejs/app.js b/web/documentserver-example/nodejs/app.js index e8788467..6bac082d 100644 --- a/web/documentserver-example/nodejs/app.js +++ b/web/documentserver-example/nodejs/app.js @@ -504,7 +504,7 @@ app.post("/track", function (req, res) { // define a handler for tracking file } var curExt = fileUtility.getFileExtension(fileName); // get current file extension - var downloadExt = body.document.fileType;//fileUtility.getFileExtension(downloadUri); // get the extension of the downloaded file + var downloadExt = body.document.filetype;//fileUtility.getFileExtension(downloadUri); // get the extension of the downloaded file var newFileName = fileName; // convert downloaded file to the file with the current extension if these extensions aren't equal @@ -589,7 +589,7 @@ app.post("/track", function (req, res) { // define a handler for tracking file } var curExt = fileUtility.getFileExtension(fileName); - var downloadExt = body.document.fileType; + var downloadExt = body.document.filetype; // convert downloaded file to the file with the current extension if these extensions aren't equal if (downloadExt != curExt) {