mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
[fix] fileType instead parsing url to save doc in node.js (take fileType out of body)
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user