提交 a5d431bb authored 作者: chaoyanjun's avatar chaoyanjun

--no commit message

上级 3f4b374b
......@@ -322,7 +322,7 @@ public class FTPController {
if (file.getName().contains(".pdf")) {
InputStream inputStream = ftpClient.retrieveFileStream(remoteDirectory + "/" + file.getName());
MultipartFile multipartFile = new MockMultipartFile(file.getName(), file.getName(), "application/pdf", inputStream);
FileInfo entity = service.uploadFile(multipartFile);
FileInfo entity = service.uploadFile(multipartFile,null,null);
pdf = entity.getFileName();
inputStream.close();
ftpClient.completePendingCommand();
......@@ -635,7 +635,7 @@ public class FTPController {
}
public FileInfo uploadVideo(MultipartFile file) {
FileInfo entity = service.uploadFile(file);
FileInfo entity = service.uploadFile(file,null,null);
File newfile = new File(rootPath + entity.getPath() + "/" + entity.getFileName() + entity.getSuffixName());
Encoder encoder = new Encoder();
String videotime = "0分0秒";
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论