[tomcat] 대용량 파일 업로드 실패 ( 파일 전송 실패, tomcat maxPostSize )


[tomcat] 대용량 파일 업로드 실패 ( 파일 전송 실패, tomcat maxPostSize )

WAS를 Tomcat을 사용할 경우 대용량 파일이 업로드가 안되고 URLConnection으로도 전송이 안되는 문제가 발생할 수 있습니다. 그 이유는, POST 방식에도 용량, 개수 제한이 있기 때문인데 이때 필요한 설정이 maxPostSize와 maxParameterCount입니다. ( GET 방식만 제한이 있는 것이 아닌, POST 방식도 제한이 있습니다. ) POST 전송 SIZE와 parameter의 개수를 설정 가능하며, 무한대로 설정할 수도 있습니다. maxParameterCount : 최대 parameter 개수 - 0보다 작은 수로 설정할 경우 무제한 - default value : 10000 The maximum number of parameter and value pairs (GET plus POST) which will be automatically parsed by the container. Parameter and value pairs beyond this l...


#maxPostSize #post #tomcat

원문링크 : [tomcat] 대용량 파일 업로드 실패 ( 파일 전송 실패, tomcat maxPostSize )