Skip to content

Commit 4da5475

Browse files
committed
Adapt to method renames in Apache Commons File Upload
Method names changed in Apache Commons File Upload commits: * apache/commons-fileupload@6555c234 * apache/commons-fileupload@07ef5fbb * apache/commons-fileupload@1e517228 * apache/commons-fileupload@74ca343e Needed for Jenkins core pull request: * jenkinsci/jenkins#26322 Needs interactive testing, plugin BOM testing, and acceptance test harness testing before it is merged.
1 parent ca31d62 commit 4da5475

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/main/java/org/kohsuke/stapler/RequestImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,9 +1224,9 @@ private void parseMultipartFormData() throws IOException, ServletException {
12241224
tmpDir.deleteOnExit();
12251225
upload = new JakartaServletDiskFileUpload(
12261226
DiskFileItemFactory.builder().setFile(tmpDir).get());
1227-
upload.setFileCountMax(FILEUPLOAD_MAX_FILES);
1228-
upload.setFileSizeMax(FILEUPLOAD_MAX_FILE_SIZE);
1229-
upload.setSizeMax(FILEUPLOAD_MAX_SIZE);
1227+
upload.setMaxFileCount(FILEUPLOAD_MAX_FILES);
1228+
upload.setMaxFileSize(FILEUPLOAD_MAX_FILE_SIZE);
1229+
upload.setMaxSize(FILEUPLOAD_MAX_SIZE);
12301230
try {
12311231
for (FileItem fi : upload.parseRequest(this)) {
12321232
parsedFormData.put(fi.getFieldName(), fi);

0 commit comments

Comments
 (0)