|
@@ -137,6 +137,11 @@ public class SceneUploadServiceImpl extends ServiceImpl<ISceneUploadMapper, Scen
|
|
|
if(files.size() ==1 && StringUtils.isNotBlank(sendFileName)){
|
|
|
realFileName = sendFileName ;
|
|
|
}
|
|
|
+
|
|
|
+ String oldExtName = cn.hutool.core.io.FileUtil.extName(realFileName);
|
|
|
+ String newExtName = oldExtName.toLowerCase();
|
|
|
+ realFileName = realFileName.substring(0, realFileName.lastIndexOf(oldExtName)) + newExtName;
|
|
|
+
|
|
|
String ossPath = StrUtil.isNotBlank(uploadPath) ? uploadPath : (String.format(UploadFilePath.USER_EDIT_PATH ,sceneCode) + realFileName);
|
|
|
try {
|
|
|
uploadToOssUtil.upload2(newFile.getPath(),ossPath);
|