Class AllowFileUploadsAttribute
enable file uploads with multipart/form-data content type
Inherited Members
Namespace: FastEndpoints
Assembly: FastEndpoints.Attributes.dll
Syntax
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public sealed class AllowFileUploadsAttribute : Attribute
Constructors
AllowFileUploadsAttribute(bool)
enable file uploads with multipart/form-data content type
Declaration
public AllowFileUploadsAttribute(bool dontAutoBindFormData = false)
Parameters
Type | Name | Description |
---|---|---|
bool | dontAutoBindFormData | set 'true' to disable auto binding of form data which enables uploading and reading of large files without buffering to memory/disk.
you can access the multipart sections for reading via the |
Properties
DontAutoBindFormData
set 'true' to disable auto binding of form data which enables uploading and reading of large files without buffering to memory/disk.
you can access the multipart sections for reading via the FormFileSectionsAsync()
method.
Declaration
public bool DontAutoBindFormData { get; set; }
Property Value
Type | Description |
---|---|
bool |