1. 修复页面上传文件 500 错误
This commit is contained in:
@@ -69,6 +69,11 @@ public class FineReportUploadController {
|
|||||||
public String getFilename() {
|
public String getFilename() {
|
||||||
return filename;
|
return filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public long contentLength() {
|
||||||
|
return file.getSize();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
body.add("file", resource);
|
body.add("file", resource);
|
||||||
if (StrUtil.isNotBlank(path)) {
|
if (StrUtil.isNotBlank(path)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user