Click or drag to resize
FormFileUploadLimitService Class
Contains properties for retrieving limits for FileUploaderComponent.
Inheritance Hierarchy
SystemObject
  Kentico.Forms.Web.MvcFormFileUploadLimitService

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public class FormFileUploadLimitService : IFormFileUploadLimitService

The FormFileUploadLimitService type exposes the following members.

Constructors
  NameDescription
Public methodFormFileUploadLimitService
Top
Fields
  NameDescription
Public fieldStatic memberMAX_ALLOWED_CONTENT_LENGHT_DEFAULT_VALUE
Default value of 'maxAllowedContentLength' web.config attribute.
Public fieldStatic memberMAX_REQUEST_LENGTH_DEFAULT_VALUE
Default value of 'maxRequestLength' web.config attribute.
Top
Properties
  NameDescription
Public propertyMaxAllowedContentLength
Gets the 'maxAllowedContentLength' attribute raw value in bytes from the application's root web.config file. Returns MAX_ALLOWED_CONTENT_LENGHT_DEFAULT_VALUE if the value is undefined.
Public propertyMaxAllowedFileSize
Gets the maximal allowed upload file size in kilobytes. The limit is the smaller value between MaxRequestLength and MaxAllowedContentLength from which additional 16 kBs are subtracted for request headers.
Public propertyMaxRequestLength
Gets the 'maxRequestLength' attribute raw value in kilobytes from the application's root web.config file. Returns MAX_REQUEST_LENGTH_DEFAULT_VALUE if the value is undefined.
Top
Remarks
The limits are determined from application's root web.config for configuration sections applying to the 'Kentico.FormBuilder/FormFileUploader' location or its parents.
See Also