reactor:【INFRA】文件上传 api,增加 directory 参数,去除 path 参数,并支持按照日期分目录、文件名不再使用 sha256 而是时间戳
This commit is contained in:
@@ -218,7 +218,7 @@ public class MpMaterialServiceImpl implements MpMaterialService {
|
||||
|
||||
private String uploadFile(String mediaId, File file) {
|
||||
String path = mediaId + "." + FileTypeUtil.getType(file);
|
||||
return fileApi.createFile(path, FileUtil.readBytes(file));
|
||||
return fileApi.createFile(FileUtil.readBytes(file), path);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user