Skip to content

Commit

Permalink
Switch to Spring's StandardServletMultipartResolver
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-jeckels committed Nov 20, 2023
1 parent 838b0b5 commit e1ab6f1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit e1ab6f1

Please sign in to comment.