提交 f01b55d8 作者: ZhangJingKun

文件上传 zhangjingkun

上级 110f8cd0
......@@ -58,7 +58,7 @@ public class LocalFileServiceImpl implements ILocalFileService {
uid = UUID.randomUUID().toString();
String filePath = getFilePath() + uid;
String filePath = getFilePath() + uid + "." + fileSuffix;
byte[] bytes = file.getBytes(); // get file in bytes
//Files.write(Paths.get(filePath), bytes);
file.transferTo(new File(filePath));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论