| | |
| | | import com.github.tobato.fastdfs.service.FastFileStorageClient;
|
| | |
|
| | | /**
|
| | | * FastDFS文件存储
|
| | | * FastDFS 文件存储
|
| | | *
|
| | | * @author ruoyi
|
| | | */
|
| | |
| | | * FastDfs文件上传接口
|
| | | *
|
| | | * @param file 上传的文件
|
| | | * @param baseDir 相对应用的基目录
|
| | | * @return 访问地址
|
| | | * @throws Exception
|
| | | */
|
| | | @Override
|
| | | public String uploadFile(MultipartFile file, String baseDir) throws Exception
|
| | | public String uploadFile(MultipartFile file) throws Exception
|
| | | {
|
| | | StorePath storePath = storageClient.uploadFile(file.getInputStream(), file.getSize(),
|
| | | FilenameUtils.getExtension(file.getOriginalFilename()), null);
|