更改上传时文件后缀名
parent
a4835b1ab2
commit
eeed46aeb5
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue