2019-05-27 13:38

@JFinal
public void uploadVideo() {
try {
Constants constants = new Constants();
UploadFile file = this.getFile("file", "video");
file.getFile().createNewFile();
Map data = new HashMap();
data.put("filePath", "/"+constants.getBaseUploadPath()+"/video/" + file.getFileName());
data.put("fileName", file.getFileName());
rendSuccessJson(data);
} catch (Exception e) {
e.printStackTrace();
rendFailedJson(ErrorCode.get("9999"));
}
}
小文件没问题,大文件上传,在上传读条过程中超过了一定时间就出现此类错误