SpringBoot: Large Streaming File Upload Using Apache Commons FileUpload

前端 未结 5 2224
萌比男神i
萌比男神i 2020-11-28 06:10

Am trying to upload a large file using the \'streaming\' Apache Commons File Upload API.

The reason I am using the Apache Commons File Uploader and not the default S

5条回答
  •  臣服心动
    2020-11-28 06:58

    You Can simply add spring properties:

    spring.servlet.multipart.max-file-size=20000KB
    spring.servlet.multipart.max-request-size=20000KB
    

    here my maximum file size is 20000KB, you can change if required.

提交回复
热议问题