<HTML>
<HEAD>
</HAED>
<BODY>
<form method="POST" action="/test" enctype="multipart/form-data">
<table>
<tr>
<td>Select a file to upload</td>
<td><input type="file" name="files" /></td>
</tr>
<tr>
<td>Select a file to upload</td>
<td><input type="file" name="files" /></td>
</tr>
<tr>
<td>Select a file to upload</td>
<td><input type="file" name="files" /></td>
</tr>
<tr>
<td><input type="submit" value="Submit" /></td>
</tr>
</table>
</form>
</BODY>
</HTML>
이런 내용으로.. 크롬 개발자 모드 네트워크 켜두고 올려보니...
Request Payload에
------WebKitFormBoundaryAG4Z56PeuPkV237H Content-Dis form-data; name="files"; filename="1523606105 (1).png" Content-Type: image/png ------WebKitFormBoundaryAG4Z56PeuPkV237H Content-Dis form-data; name="files"; filename="1523606105 (2).png" Content-Type: image/png ------WebKitFormBoundaryAG4Z56PeuPkV237H Content-Dis form-data; name="files"; filename="1523606105.png" Content-Type: image/png ------WebKitFormBoundaryAG4Z56PeuPkV237H--
이렇게 잘만 올라가는뎅.
ㅇㅇ
https://stackoverflow.com/questions/20183295/uploading-multiple-files-using-jsp-servlets
여기 서블릿 부분의 코드를 jsp에 맞게 바꿔서 넣어봐
쟤는 님처럼 안하고 아에 input 태그하나에 multiple 속성걸어서 한번에 보내는거 말하는듯