RuoYi
2022-04-11 d14f27e5eb3a804fa1c1f6cb5d471b63ed80f57a
ruoyi-modules/ruoyi-file/src/main/java/com/ruoyi/file/service/FastDfsSysFileServiceImpl.java
@@ -9,7 +9,7 @@
import com.github.tobato.fastdfs.service.FastFileStorageClient;
/**
 * FastDFS文件存储
 * FastDFS 文件存储
 * 
 * @author ruoyi
 */
@@ -29,12 +29,11 @@
     * 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);