diff --git a/web/documentserver-example/python/src/utils/trackManager.py b/web/documentserver-example/python/src/utils/trackManager.py index e9882a77..f9b84ce0 100644 --- a/web/documentserver-example/python/src/utils/trackManager.py +++ b/web/documentserver-example/python/src/utils/trackManager.py @@ -60,7 +60,7 @@ def processSave(body, filename, usAddr): newFilename = filename curExt = fileUtils.getFileExt(filename) # get current file extension - downloadExt = fileUtils.getFileExt(download) # get the extension of the downloaded file + downloadExt = body.get('fileType') # get the extension of the downloaded file # convert downloaded file to the file with the current extension if these extensions aren't equal if (curExt != downloadExt): @@ -106,7 +106,7 @@ def processForceSave(body, filename, usAddr): if (download is None): raise Exception("DownloadUrl is null") curExt = fileUtils.getFileExt(filename) # get current file extension - downloadExt = fileUtils.getFileExt(download) # get the extension of the downloaded file + downloadExt = body.get('fileType') # get the extension of the downloaded file newFilename = False # convert downloaded file to the file with the current extension if these extensions aren't equal