Connection terminated as request was larger than 10485760

user1723583

I'm trying to upload a 6MB file to my JHipster app server. However, I get the following error. Where can I find the related configuration?

io.undertow.server.RequestTooBigException: UT000020: Connection terminated as request was larger than 10485760
at io.undertow.conduits.FixedLengthStreamSourceConduit.checkMaxSize(FixedLengthStreamSourceConduit.java:168)
at io.undertow.conduits.FixedLengthStreamSourceConduit.read(FixedLengthStreamSourceConduit.java:229)
at org.xnio.conduits.ConduitStreamSourceChannel.read(ConduitStreamSourceChannel.java:127)
at io.undertow.channels.DetachableStreamSourceChannel.read(DetachableStreamSourceChannel.java:209)
at io.undertow.server.HttpServerExchange$ReadDispatchChannel.read(HttpServerExchange.java:2332)
at org.xnio.channels.Channels.readBlocking(Channels.java:294)
at io.undertow.servlet.spec.ServletInputStreamImpl.readIntoBuffer(ServletInputStreamImpl.java:192)
at io.undertow.servlet.spec.ServletInputStreamImpl.read(ServletInputStreamImpl.java:168)
at io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.parseBlocking(MultiPartParserDefinition.java:213)
at io.undertow.servlet.spec.HttpServletRequestImpl.parseFormData(HttpServletRequestImpl.java:792)
Anton Novopashin

Spring Boot has the following default properties

spring.servlet.multipart.max-file-size=1MB # Max file size. Values can use the suffixes "MB" or "KB" to indicate megabytes or kilobytes, respectively.
spring.servlet.multipart.max-request-size=10MB # Max request size. Values can use the suffixes "MB" or "KB" to indicate megabytes or kilobytes, respectively.

10485760 = 10MB

See the file upload Spring Boot guide :

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

JFrame larger than it's window

Postgresql Error: connection terminated

Google Dataflow: Request payload size exceeds the limit: 10485760 bytes

TFRecord larger than the original data

type char exceed 10485760 limit error still showing after I change the limit to something less than MAX

INVALID_ARGUMENT: Request payload size exceeds the limit: 10485760 bytes

Typeorm connection terminated

GCP Dataflow droppedDueToClosedWindow & Commit request for stage S8 and key 8 is larger than 2GB

Error: Request body larger than maxBodyLength limit when sending base64 post request Axios

If index is larger than length

Connection terminated during handshake flutter

Failed POST request to Laravel containing files larger than 1MB

HERE-SDK (hello_map_app problem) Lost connection to device. It is larger than the device screen size

Uploading a file larger than 100 MB with .NET Core 3.1 will result in 400 (Bad Request)

Linux PPPD connection terminated -> LCP terminated by peer (User request)

Maximized window larger than desktop

LinearLayout larger than screen

Content larger than screen height

Larger than Unsigned Long Long

Scrollbars if form larger than screen

AWS volume larger than specified

Flexbox child larger than screen

Connection with the server was terminated abnormally

Error: Connection terminated - ASYNC nodeJS

Flutter Connection terminated during handshake

psql: error: server closed the connection unexpectedly. This probably means the server terminated abnormally before or while processing the request

<svg> is larger than <use>

recoding dates if larger than?

Error [ERR_FR_MAX_BODY_LENGTH_EXCEEDED]: Request body larger than maxBodyLength limit when sending a request to openai apu