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