2

I am developing a Quarkus application and using RESTEasy Reactive. One of the endpoints receives a multipart/form-data mime type object but when I try to use it sometimes the "413 - Request Entity too Large" error occurs.

Hugo Vinhal
  • 305
  • 1
  • 15

2 Answers2

3

After digging the Quarkus documentation, the property you really need to configure is this:

quarkus.http.limits.max-form-attribute-size

I have set this to 4M (4 megabytes), like this, on my application.yaml file, but of course you can configure it for any value you may want:

quarkus:
    http:
        limits:
            max-form-attribute-size: 4M

Keep in mind that if you are using an application.properties file instead, you should do it like this:

quarkus.http.limits.max-form-attribute-size=4M
Hugo Vinhal
  • 305
  • 1
  • 15
1

My very same problem does not solve by @hugo solution. I fixed it using property quarkus.http.limits.max-body-size

khesam109
  • 510
  • 9
  • 16
  • 1
    I would say that property works when you have an endpoint that receives a JSON as the body. For the scenario of this question we are receiving a multipart/form-data so the max-form-attribute-size should be used – Hugo Vinhal May 09 '23 at 14:53