Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hlcm
leaf-hlcm
Commits
477c42f6
Commit
477c42f6
authored
May 11, 2023
by
18083
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
附件上传小于10k报错问题
parent
62b05e10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
hls_journal_attach_trans_upload.lview
.../modules/hls/HLS536/hls_journal_attach_trans_upload.lview
+2
-1
No files found.
src/main/webapp/modules/hls/HLS536/hls_journal_attach_trans_upload.lview
View file @
477c42f6
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
var year=data[0].year;
var year=data[0].year;
var month=data[0].month;
var month=data[0].month;
var factory = new Packages.org.apache.commons.fileupload.disk.DiskFileItemFactory();
var factory = new Packages.org.apache.commons.fileupload.disk.DiskFileItemFactory();
factory.setSizeThreshold(10);
var up = new Packages.org.apache.commons.fileupload.servlet.ServletFileUpload(factory);
var up = new Packages.org.apache.commons.fileupload.servlet.ServletFileUpload(factory);
var items = up.parseRequest(request);
var items = up.parseRequest(request);
var i = items.iterator();
var i = items.iterator();
...
@@ -57,7 +58,7 @@
...
@@ -57,7 +58,7 @@
if(output!=null){
if(output!=null){
output.close();
output.close();
}
}
raise_app_error('上传文件出错,请联系管理员!');
raise_app_error('上传文件出错,请联系管理员!'
+String(e.javaException.getMessage())
);
println('上传文件出错,请联系管理员!e');
println('上传文件出错,请联系管理员!e');
}
}
var file_length=get_file_length(file_path+file_name);
var file_length=get_file_length(file_path+file_name);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment