diff --git a/jeelowcode-service/jeelowcode-service-infra-biz/src/main/java/com/jeelowcode/service/infra/controller/FileController.java b/jeelowcode-service/jeelowcode-service-infra-biz/src/main/java/com/jeelowcode/service/infra/controller/FileController.java index 42382f4..1608efa 100644 --- a/jeelowcode-service/jeelowcode-service-infra-biz/src/main/java/com/jeelowcode/service/infra/controller/FileController.java +++ b/jeelowcode-service/jeelowcode-service-infra-biz/src/main/java/com/jeelowcode/service/infra/controller/FileController.java @@ -67,7 +67,7 @@ public class FileController { String path = publicPath + fileName; fileName = fileService.getUniqueFileName(fileName, path); - path = publicPath + fileName; + path = publicPath + IdUtil.simpleUUID() + (StrUtil.isEmpty(FileUtil.extName(fileName)) ? "" : ("." + FileUtil.extName(fileName))); return success(fileService.createFile(fileName, path, IoUtil.readBytes(file.getInputStream()))); }