|
@@ -54,7 +54,7 @@ public class UploadService {
|
|
|
if(filePathSet !=null){
|
|
|
filePathSet.add(path);
|
|
|
}
|
|
|
- if(fileName.toLowerCase().endsWith(".mp4")){
|
|
|
+ if(file.getOriginalFilename().toLowerCase().endsWith(".mp4")){
|
|
|
VideoUtil.ffmpegVideo(path,path.replace(suffixName,".jpg"),"200","200");
|
|
|
uploadToOssUtil.upload(path.replace(suffixName,".jpg"),filePathAdd+ fileName + ".jpg");
|
|
|
if(!uploadToOssUtil.existKey(filePathAdd+ fileName + ".jpg")){
|