Skip to content

Commit c3b53d4

Browse files
lesson 09 submittedFileName
1 parent 2122b18 commit c3b53d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/webapp/src/main/java/ru/javaops/masterjava/webapp/SendServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws S
3434
if (filePart == null) {
3535
attaches = ImmutableList.of();
3636
} else {
37-
attaches = ImmutableList.of(Attachments.getAttach(filePart.getName(), filePart.getInputStream()));
37+
attaches = ImmutableList.of(Attachments.getAttach(filePart.getSubmittedFileName(), filePart.getInputStream()));
3838
}
3939
String groupResult;
4040
try {

0 commit comments

Comments
 (0)