From e1ab6f1d7c4097ae503a61a3445d22b5e3e29d7a Mon Sep 17 00:00:00 2001 From: labkey-jeckels Date: Mon, 20 Nov 2023 14:04:18 -0800 Subject: [PATCH] Switch to Spring's StandardServletMultipartResolver --- .../src/org/labkey/testresults/TestResultsController.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/testresults/src/org/labkey/testresults/TestResultsController.java b/testresults/src/org/labkey/testresults/TestResultsController.java index e38ea70a..ed0c8a4e 100644 --- a/testresults/src/org/labkey/testresults/TestResultsController.java +++ b/testresults/src/org/labkey/testresults/TestResultsController.java @@ -82,7 +82,6 @@ import org.springframework.validation.BindException; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartRequest; -import org.springframework.web.multipart.commons.CommonsMultipartFile; import org.springframework.web.servlet.ModelAndView; import org.w3c.dom.Document; import org.w3c.dom.Element; @@ -1188,7 +1187,7 @@ public static File makeFile(Container c, String filename) } private static String SaveXML(MultipartFile file, Container c) { - String fileName = ((CommonsMultipartFile) file).getFileItem().getName(); + String fileName = file.getOriginalFilename(); try { File f = makeFile(c, fileName);