Web/Spring
FIle Upload
cha-n
2021. 5. 6. 13:28
servlet-context.xml
form
<form id="writeform" method="post" enctype="multipart/form-data" action="">
<input type="file" name="upfile" multiple="multiple">
1. input type="file"
2. file upload를 위해서는 반드시 POST 방식 사용
3. enctype 설정 반드시 필요