update ruoyi-modules/ruoyi-file/src/main/java/com/ruoyi/file/service/FastDfsSysFileServiceImpl.java.

pull/70/head
Mood 4 years ago committed by Gitee
parent 23944b2f9c
commit 2bb479ef28

@ -1,6 +1,7 @@
package com.ruoyi.file.service;
import org.apache.commons.io.FilenameUtils;
import com.ruoyi.file.utils.FileUploadUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
@ -36,7 +37,7 @@ public class FastDfsSysFileServiceImpl implements ISysFileService
public String uploadFile(MultipartFile file) throws Exception
{
StorePath storePath = storageClient.uploadFile(file.getInputStream(), file.getSize(),
FilenameUtils.getExtension(file.getOriginalFilename()), null);
FileUploadUtils.getExtension(file), null);
return domain + "/" + storePath.getFullPath();
}
}

Loading…
Cancel
Save