You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.
and request body is greater than default limit for HeadersLengthLimit (which is 16KB now), user get exception message of "Multipart body length limit 16384 exceeded."
The confusion here is that multipart forms don't start with the first boundary, there can be an arbitrary amount of data prior to the first boundary.
Hello world, how are you? This is preamble data
--9051914041544843365972754266
Content-Disposition: form-data; name="text"
text default
--9051914041544843365972754266--
Because the boundary is not correctly formatted in your example, that data is all parsed as part of the initial 'body' and so the body limit applies. Note that the limits can't currently be configured for this initial section.
From @mabakay on November 16, 2016 22:53
When multipart/form-data request is malformed for instance (missing double dash at boundary start):
and request body is greater than default limit for HeadersLengthLimit (which is 16KB now), user get exception message of "Multipart body length limit 16384 exceeded."
MultipartReaderStream.cs #166
Copied from original issue: aspnet/Mvc#5534
The text was updated successfully, but these errors were encountered: