| Issue 78: | [easygou-backend] MultipartRequestParse.java 存在硬编码 | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. 2. 3. What is the expected output? What do you see instead? Please use labels and text to provide additional information.
Mar 12, 2013
(No comment was entered for this change.)
Owner:
chenling...@gmail.com
Mar 20, 2013
152
Mar 20, 2013
152
Status:
Fixed
|
// maximum size that will be stored in memory factory.setSizeThreshold(4096); // the location for saving data that is larger than getSizeThreshold() String uploadFilePath = request.getServletContext().getRealPath("/upload"); factory.setRepository(new File(uploadFilePath)); ServletFileUpload upload = new ServletFileUpload(factory); // maximum size before a FileUploadException will be thrown upload.setSizeMax(5 * 1024 * 1024);