Java – error “unable to process part because multi part configuration is not provided” when uploading file [copy]

See the English answer > how to upload files to server using JSP / servlet? 12

Error message:

java.lang.IllegalStateException: Unable to process parts as no multi-part configuration has been provided

on-line

Collection<Part> parts = request.getParts();`

Solution

I have to add

allowCasualMultipartParsing="true"

In context On the context tag in XML

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>