提交 9fcd6ac8 编写于 作者: zhouweidong's avatar zhouweidong

输出文件上传异常

上级 72b88df3
...@@ -41,7 +41,7 @@ public class SimpleFileService implements FileService { ...@@ -41,7 +41,7 @@ public class SimpleFileService implements FileService {
FileCopyUtils.copy(multipartFile.getInputStream(),Files.newOutputStream(file.toPath())); FileCopyUtils.copy(multipartFile.getInputStream(),Files.newOutputStream(file.toPath()));
item=new FileItem(fileid,fileName,fileid,fileName,(int)multipartFile.getSize(),extname); item=new FileItem(fileid,fileName,fileid,fileName,(int)multipartFile.getSize(),extname);
} catch (IOException e) { } catch (IOException e) {
throw new InternalServerErrorException("文件上传失败"); throw new InternalServerErrorException("文件上传失败,"+e);
} }
return item; return item;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册