main
黄海 2 years ago
parent 2d9d87fa87
commit ae15016c5c

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 KiB

@ -898,7 +898,7 @@ public class CollectController extends Controller {
}
if (!FileUtil.exist(basePath)) FileUtil.mkdir(basePath);
String file_id = UUID.randomUUID().toString().toUpperCase();
String filePath = basePath + file_id + "." + suffix;
String filePath = basePath+File.separator + file_id + "." + suffix;
uf.getFile().renameTo(new File(filePath));
//计算文件大小
String file_size = FileSizeUtil.getAutoFileOrFilesSize(filePath);

Loading…
Cancel
Save