diff --git a/DocService/sources/canvasservice.js b/DocService/sources/canvasservice.js index 4c09142d..12bbe602 100644 --- a/DocService/sources/canvasservice.js +++ b/DocService/sources/canvasservice.js @@ -1124,6 +1124,7 @@ exports.saveFile = function(req, res) { } cmd.setStatusInfo(constants.NO_ERROR); yield* addRandomKeyTaskCmd(cmd); + cmd.setOutputPath(constants.OUTPUT_NAME + pathModule.extname(cmd.getOutputPath())); yield storage.putObject(cmd.getSaveKey() + '/' + cmd.getOutputPath(), req.body, req.body.length); let replyStr = yield* commandSfcCallback(cmd, false, true); if (replyStr) {