Revert "包头改minio"
This reverts commit 600f75dad56074a0698998f4aeda8690970252a9.
This commit is contained in:
parent
600f75dad5
commit
0488b6b42d
@ -45,7 +45,7 @@ public class LocalFileManagerServiceImpl implements FileManagerService {
|
|||||||
FileResourceVo resourceVo = null;
|
FileResourceVo resourceVo = null;
|
||||||
try {
|
try {
|
||||||
// 文件原始扩展名
|
// 文件原始扩展名
|
||||||
FileInfo fileInfo = fileStorageService.of(file).setPlatform("minio-1").upload();
|
FileInfo fileInfo = fileStorageService.of(file).upload();
|
||||||
resourceVo = FileResourceVo.builder().id(fileInfo.getFilename()).isImage(isImg)
|
resourceVo = FileResourceVo.builder().id(fileInfo.getFilename()).isImage(isImg)
|
||||||
.url(fileInfo.getFilename()).size(file.getSize()).name(fileInfo.getOriginalFilename()).contentType(fileInfo.getContentType()).build();
|
.url(fileInfo.getFilename()).size(file.getSize()).name(fileInfo.getOriginalFilename()).contentType(fileInfo.getContentType()).build();
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user