Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
ldp-docs
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
doc
ldp-docs
Commits
5ab0899f
Commit
5ab0899f
authored
Oct 12, 2020
by
马超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 完善对象存储文档
parent
810a349e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
LDP第三方对象存储服务使用说明.md
开发文档/LDP第三方对象存储服务使用说明.md
+4
-1
No files found.
开发文档/LDP第三方对象存储服务使用说明.md
View file @
5ab0899f
...
@@ -70,9 +70,12 @@ StorageService storageService;
...
@@ -70,9 +70,12 @@ StorageService storageService;
@Override
@Override
public
String
uploadToCloudStorage
(
MultipartFile
file
)
{
public
String
uploadToCloudStorage
(
MultipartFile
file
)
{
if
(
file
==
null
)
{
throw
new
BizException
(
500
,
"文件不能为空"
);
}
String
uploadPath
=
null
;
String
uploadPath
=
null
;
try
{
try
{
//调用上传方法,返回
的是
下载地址
//调用上传方法,返回下载地址
uploadPath
=
storageService
.
upload
(
file
.
getBytes
(),
file
.
getOriginalFilename
());
uploadPath
=
storageService
.
upload
(
file
.
getBytes
(),
file
.
getOriginalFilename
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
...
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