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

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[RadCompressionSettings(HttpCompression = CompressionType.None)]
public class AsyncUploadHandler : PreventableHandler, IHttpHandler, IRequiresSessionState

Inheritance: objectPreventableHandlerAsyncUploadHandler

Implements: IHttpHandlerIRequiresSessionState

Inherited Members PreventableHandler.CheckPreventHandler(string, HttpContext, string)PreventableHandler.CompleteRequest(HttpApplication, int)object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public AsyncUploadHandler()
C#
public AsyncUploadHandler(IRequestData requestData, IResponseWriter responseWriter, ITempFileAppender fileAppender)
Parameters:requestDataIRequestDataresponseWriterIResponseWriterfileAppenderITempFileAppender

Properties

C#
public IAsyncUploadConfiguration Configuration { get; set; }
C#
public string FullPath { get; }
C#
public bool IsReusable { get; }
C#
public virtual int MaxJsonLength { get; set; }
C#
public string TemporaryFileName { get; set; }
C#
public virtual string TemporaryFolder { get; set; }

Methods

C#
protected virtual void AddCacheDependency(HttpContext context, string tempFileName, TimeSpan timeToLive, string fullPath)
Parameters:contextHttpContexttempFileNamestringtimeToLiveTimeSpanfullPathstring
C#
protected virtual string ChangeOriginalFileName(string fileName)
Parameters:fileNamestringReturns:

string

C#
protected virtual bool CheckOriginalFileNameForInvalidChars(string originalFileName)
Parameters:originalFileNamestringReturns:

bool

C#
protected T CreateDefaultUploadResult<T>(UploadedFile file) where T : IAsyncUploadResult, new()
Parameters:fileUploadedFileReturns:

T

C#
protected bool IsFileSizeValid(long contentLength, int maxFileSize)
Parameters:contentLengthlongmaxFileSizeintReturns:

bool

C#
protected virtual IAsyncUploadResult Process(UploadedFile file, HttpContext context, IAsyncUploadConfiguration configuration, string tempFileName)
Parameters:fileUploadedFilecontextHttpContextconfigurationIAsyncUploadConfigurationtempFileNamestringReturns:

IAsyncUploadResult

C#
public void ProcessRequest(HttpContext context)
Parameters:contextHttpContext
C#
protected void SaveToTempFolder(UploadedFile file, IAsyncUploadConfiguration config, HttpContext context, string tempFileName)
Parameters:fileUploadedFileconfigIAsyncUploadConfigurationcontextHttpContexttempFileNamestring