반응형
    
    
    
  
멀티파일업로드 작업시 에러 내용 : Corrupt form data: premature ending
- 이유는 request가 두번 호출되는데, 두번째 호출될때 request에 inputStream이 사라져서 발생함.
화면에서 데이터 처리가 잘되어있다면 . 아래의 내용을 web.xml 파일을 열어서 설정을 추가해야함.
간만에 파일업로드를 직접해보니 너무 삽질 중 ㅠㅠ
 <filter>
  <filter-name>multipart</filter-name>
    <filter-class>org.springframework.web.multipart.support.MultipartFilter</filter-class>
 </filter>
 <filter-mapping>
    <filter-name>multipart</filter-name>
    <url-pattern>*.do</url-pattern>
  </filter-mapping>
반응형
    
    
    
  '프로그램 > JAVA' 카테고리의 다른 글
| spring 프레임워크 Injection of autowired dependencies failed , could not autowire field 에러 (0) | 2020.06.26 | 
|---|---|
| 자바 이미지 리사이즈 (0) | 2017.11.17 | 
| org/eclipse/core/resources/IContainer (0) | 2014.08.11 | 
| java.math.BigDecimal incompatible with java.lang.String (0) | 2014.07.31 | 
| 자바 이클립스 KELPER 버전 웹 프로젝트 (0) | 2014.03.11 |