Click or drag to resize
IFormFileUploadLimitService Interface
Contains properties for retrieving limits for FileUploaderComponent.

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

The IFormFileUploadLimitService type exposes the following members.

Properties
  NameDescription
Public propertyMaxAllowedContentLength
Gets the 'maxAllowedContentLength' attribute 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 converted to kilobytes.
Public propertyMaxRequestLength
Gets the 'maxRequestLength' attribute 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