My bad. It is documented in the API Java Docs:
* @throws ServletException if this request is not of type
* multipart/form-data
On Sun, Nov 24, 2019 at 3:15 PM Behrang Saeedzadeh
wrote:
> When sending such a request, Tomcat throws an exception:
>
> $ curl -d documentDate=foo -d documentOwner=A1
When sending such a request, Tomcat throws an exception:
$ curl -d documentDate=foo -d documentOwner=A123
localhost:8080/file-server/a/upload
SEVERE
[http-nio-8080-exec-16]
org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service()
for servlet [A.UploadServlet]
in context with path [/f