문제

When using CommonsMultipartResolver for file uploads where does spring stores larger files while processing them ?

We have a js check for the size and we put a maxUploadSize. If a user bypasses the js control and sends a huge file, what does spring do to process it ?

Thanks in advance

도움이 되었습니까?

해결책

CommonsMultipartResolver will save to the Servlet container's temporary directory.

You can limit the size of uploads by setting maxUploadSize property (default is 10240 bytes).

for example:

<bean id="multipartResolver" class="o.s.w.m.commons.CommonsMultipartResolver">
  ...
  <property name="maxUploadSize" value="###"/>
</bean>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top