FormFileUploadLimitService Class |
Namespace: Kentico.Forms.Web.Mvc
public class FormFileUploadLimitService : IFormFileUploadLimitService
The FormFileUploadLimitService type exposes the following members.
Name | Description | |
---|---|---|
FormFileUploadLimitService |
Name | Description | |
---|---|---|
MAX_ALLOWED_CONTENT_LENGHT_DEFAULT_VALUE |
Default value of 'maxAllowedContentLength' web.config attribute.
| |
MAX_REQUEST_LENGTH_DEFAULT_VALUE |
Default value of 'maxRequestLength' web.config attribute.
|
Name | Description | |
---|---|---|
MaxAllowedContentLength |
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.
| |
MaxAllowedFileSize |
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.
| |
MaxRequestLength |
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.
|