更改上传时文件后缀名

master
tangwenkang 2023-11-06 20:08:03 +08:00
parent a4835b1ab2
commit eeed46aeb5
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ public class VideoServiceImpl implements VideoService {
// 获取文件后缀,因此此后端代码可接收一切文件,上传格式前端限定
String fileExt = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".") + 1).toLowerCase();
vodConfig.put("filename", result + fileExt); // 此参数不重要,只要能保留文件后缀名如 a.mp4 即可
vodConfig.put("filename",fileExt); // 此参数不重要,只要能保留文件后缀名如 a.mp4 即可
vodConfig.put("vn", result); // .. . 分组配置、回调参数
JSONObject body = new JSONObject();// 构建body对象
body.put("channel", "VOD_UPLOAD");