New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Default implementation of IAsyncUploadConfiguration. Base class that can be used to pass custom information from the page to the handler. Inherit this class and add a relevant data.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class AsyncUploadConfiguration : IAsyncUploadConfiguration

Inheritance: objectAsyncUploadConfiguration

Implements: IAsyncUploadConfiguration

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public AsyncUploadConfiguration()
C#
public AsyncUploadConfiguration(string targetFolder, string tempTargetFolder, int maxFileSize, TimeSpan timeToLive)
Parameters:targetFolderstringtempTargetFolderstringmaxFileSizeinttimeToLiveTimeSpan

Properties

Gets or sets the allowed file extensions send to the upload handler.

C#
public string[] AllowedFileExtensions { get; set; }
Property Value:

The AllowedFileEntensions.

Gets or sets the CSRF token to validate the request. The token will be generated on the page and passed to the handler in order to validate the request and prevent CSRF attacks.

C#
public string CsrfToken { get; set; }

Gets or sets the max file size.

C#
public int MaxFileSize { get; set; }
Property Value:

The max file size.

Implements: IAsyncUploadConfiguration.MaxFileSize

Gets or sets the target folder.

C#
public string TargetFolder { get; set; }
Property Value:

The target folder.

Implements: IAsyncUploadConfiguration.TargetFolder

Gets or sets the temp target folder.

C#
public string TempTargetFolder { get; set; }
Property Value:

The temp target folder.

Implements: IAsyncUploadConfiguration.TempTargetFolder

Gets or sets the time to live.

C#
public TimeSpan TimeToLive { get; set; }
Property Value:

The time to live.

Implements: IAsyncUploadConfiguration.TimeToLive

Gets or sets whether to use application pool impersonation.

C#
public bool UseApplicationPoolImpersonation { get; set; }
Property Value:

The usage of application pool impersonation.