BUGFIX:element上传;

This commit is contained in:
shahaibo
2024-01-04 11:04:15 +08:00
parent dd5997fea6
commit 11f94ebcb4
2 changed files with 10 additions and 2 deletions

View File

@@ -146,7 +146,7 @@ public class MinioUtil {
String fileName = file.getOriginalFilename();
String[] split = fileName.split("\\.");
if (split.length > 1) {
fileName = path + "/" + UUID.randomUUID() + "." + split[1];
fileName = path + "/" + UUID.randomUUID() + "." + split[split.length - 1];
} else {
fileName = path + "/" + UUID.randomUUID();
}