Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
interface Microsoft.​AspNetCore.​Http.​Metadata.​IFormOptionsMetadata
Assembly: Microsoft.AspNetCore.Http.Abstractions
Interface marking attributes that specify limits associated with reading a form.
Properties
bool?
BufferBody
Enables full request body buffering. Use this if multiple components need to read the raw stream. Defaults to false.
int?
MemoryBufferThreshold
If BufferBody is enabled, this many bytes of the body will be buffered in memory.
If this threshold is exceeded then the buffer will be moved to a temp file on disk instead.
This also applies when buffering individual multipart section bodies. Defaults to 65,536 bytes, which is approximately 64KB.
long?
BufferBodyLengthLimit
If BufferBody is enabled, this is the limit for the total number of bytes that will be buffered.
Forms that exceed this limit will throw an InvalidDataException when parsed. Defaults to 134,217,728 bytes, which is approximately 128MB.
int?
ValueCountLimit
A limit for the number of form entries to allow. Forms that exceed this limit will throw an InvalidDataException when parsed. Defaults to 1024.
int?
KeyLengthLimit
A limit on the length of individual keys. Forms containing keys that
exceed this limit will throw an InvalidDataException when parsed.
Defaults to 2,048 bytes, which is approximately 2KB.
int?
ValueLengthLimit
A limit on the length of individual form values. Forms containing
values that exceed this limit will throw an InvalidDataException
when parsed. Defaults to 4,194,304 bytes, which is approximately 4MB.
int?
MultipartBoundaryLengthLimit
A limit for the length of the boundary identifier. Forms with boundaries
that exceed this limit will throw an InvalidDataException when parsed.
Defaults to 128 bytes.
int?
MultipartHeadersCountLimit
A limit for the number of headers to allow in each multipart section.
Headers with the same name will be combined. Form sections that exceed
this limit will throw an InvalidDataException when parsed. Defaults to 16.
int?
MultipartHeadersLengthLimit
A limit for the total length of the header keys and values in each
multipart section. Form sections that exceed this limit will throw
an InvalidDataException when parsed. Defaults to 16,384 bytes,
which is approximately 16KB.
long?
MultipartBodyLengthLimit
/A limit for the length of each multipart body. Forms sections that
exceed this limit will throw an InvalidDataException when parsed.
Defaults to 134,217,728 bytes, which is approximately 128MB.