Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
property-management
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
property-management
Commits
ca95d709
Commit
ca95d709
authored
Apr 01, 2021
by
zhangdaiscott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minio上传文件,文件名包含点的时候拼接文件名有问题 issues/I3CLFL
parent
cdec7199
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/MinioUtil.java
+1
-1
jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/oss/OssBootUtil.java
+1
-1
No files found.
jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/MinioUtil.java
View file @
ca95d709
...
...
@@ -75,7 +75,7 @@ public class MinioUtil {
orgName
=
file
.
getName
();
}
orgName
=
CommonUtils
.
getFileName
(
orgName
);
String
objectName
=
bizPath
+
"/"
+
orgName
.
substring
(
0
,
orgName
.
lastIndexOf
(
"."
))
+
"_"
+
System
.
currentTimeMillis
()
+
orgName
.
substring
(
orgName
.
i
ndexOf
(
"."
));
String
objectName
=
bizPath
+
"/"
+
orgName
.
substring
(
0
,
orgName
.
lastIndexOf
(
"."
))
+
"_"
+
System
.
currentTimeMillis
()
+
orgName
.
substring
(
orgName
.
lastI
ndexOf
(
"."
));
// 使用putObject上传一个本地文件到存储桶中。
if
(
objectName
.
startsWith
(
"/"
)){
...
...
jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/oss/OssBootUtil.java
View file @
ca95d709
...
...
@@ -111,7 +111,7 @@ public class OssBootUtil {
orgName
=
file
.
getName
();
}
orgName
=
CommonUtils
.
getFileName
(
orgName
);
String
fileName
=
orgName
.
substring
(
0
,
orgName
.
lastIndexOf
(
"."
))
+
"_"
+
System
.
currentTimeMillis
()
+
orgName
.
substring
(
orgName
.
i
ndexOf
(
"."
));
String
fileName
=
orgName
.
substring
(
0
,
orgName
.
lastIndexOf
(
"."
))
+
"_"
+
System
.
currentTimeMillis
()
+
orgName
.
substring
(
orgName
.
lastI
ndexOf
(
"."
));
if
(!
fileDir
.
endsWith
(
"/"
))
{
fileDir
=
fileDir
.
concat
(
"/"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment