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);