Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-aliyun
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
hqzhdj
cloud-aliyun
Commits
0f252a3f
Commit
0f252a3f
authored
Mar 17, 2025
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
附件更新名字
parent
99d8d675
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
cloud-aliyun-service/src/main/java/com/yizhi/aliyun/application/controller/FileUploadController.java
+1
-1
No files found.
cloud-aliyun-service/src/main/java/com/yizhi/aliyun/application/controller/FileUploadController.java
View file @
0f252a3f
...
...
@@ -47,7 +47,7 @@ public class FileUploadController {
String
bucketName
=
propertiesUtil
.
getPublicParam
().
get
(
"ossdir"
);;
String
name
=
file
.
getOriginalFilename
();
String
[]
fileNames
=
name
.
split
(
"\\."
);
name
=
fileNames
[
0
]
+
DateFormatUtils
.
format
(
new
Date
(),
"yyyyMMdd"
)
+
fileNames
[
1
];
name
=
fileNames
[
0
]
+
System
.
currentTimeMillis
(
)
+
fileNames
[
1
];
log
.
info
(
"=============文件大小:{}==========="
,
file
.
getSize
());
minioTools
.
uplodFile
(
bucketName
,
name
,
file
.
getInputStream
());
return
Response
.
ok
(
pcHostUrl
+
"/api/v1/buckets/"
+
bucketName
+
"/objects/download/?preview=true&prefix="
+
name
);
...
...
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