Commit b0ac200a authored by m1991's avatar m1991

资讯模块数据——视频功能修复

parent 73ef6161
...@@ -115,8 +115,7 @@ public class UploadServiceImpl implements UploadService { ...@@ -115,8 +115,7 @@ public class UploadServiceImpl implements UploadService {
String suffixName = zxName.substring(zxName.lastIndexOf("."));//从最后一个.开始截取。截取zxName的后缀名 String suffixName = zxName.substring(zxName.lastIndexOf("."));//从最后一个.开始截取。截取zxName的后缀名
String newzxName = time+suffixName; //文件新名称 String newzxName = time+suffixName; //文件新名称
//设置文件存储路径,可以存放在你想要指定的路径里面 //设置文件存储路径,可以存放在你想要指定的路径里面
String rootPath="/opt/upload/"; //上传图片存放位置 String rootPath="/opt/upload/video/"; //上传图片存放位置
String filePath = rootPath+newzxName; String filePath = rootPath+newzxName;
File newFile = new File(filePath); File newFile = new File(filePath);
//判断目标文件所在目录是否存在 //判断目标文件所在目录是否存在
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment