修改fastdfs文件url
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ public class FastdfsAutoConfigure {
|
||||
@Override
|
||||
protected void uploadFile(MultipartFile file, FileInfo fileInfo) throws Exception {
|
||||
StorePath storePath = storageClient.uploadFile(file.getInputStream(), file.getSize(), FilenameUtils.getExtension(file.getOriginalFilename()), null);
|
||||
fileInfo.setUrl(fileProperties.getFdfs().getWebUrl() + "/" + storePath.getFullPath());
|
||||
fileInfo.setUrl("http://" + fileProperties.getFdfs().getWebUrl() + "/" + storePath.getFullPath());
|
||||
fileInfo.setPath(storePath.getFullPath());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user