|
|
@@ -263,8 +263,10 @@ public class BaseApiController extends BaseController {
|
|
|
String fileName = mf.getName() + System.nanoTime() + ".mp4" ;
|
|
|
if (!files.isEmpty()) {
|
|
|
try {
|
|
|
- mf.transferTo(new File(fileName));
|
|
|
+ File f = new File(fileName);
|
|
|
+ mf.transferTo(f);
|
|
|
LoggerUtils.debug(getClass(), fileName + " 文件上传成功");
|
|
|
+ LoggerUtils.debug(getClass(), f.getAbsolutePath() + " 文件上传成功");
|
|
|
} catch (IllegalStateException | IOException e) {
|
|
|
LoggerUtils.error(getClass(), "文件上传失败", e);
|
|
|
res.getError().add(buildError("", "文件上传失败!"));
|