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

This class implements the UploadedFileInfo object and its fields and methods.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class UploadedFileInfo : IAsyncUploadResult

Inheritance: objectUploadedFileInfo

Implements: IAsyncUploadResult

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

Constructors

C#
public UploadedFileInfo()
C#
public UploadedFileInfo(UploadedFile file)
Parameters:fileUploadedFile

Properties

Gets the size in bytes of an uploaded file.

C#
public long ContentLength { get; set; }
Property Value:

The length of the file.

Implements: IAsyncUploadResult.ContentLength

Gets the MIME content type of a file sent by a client.

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

The MIME content type of the uploaded file.

Implements: IAsyncUploadResult.ContentType

Gets the last modified date of the uploaded file in JSON format.

C#
public string DateJson { get; }
Property Value:

Last modified date of the uploaded file in JSON format.

The property is available only in RadAsyncUpload control when FileApi module is used

Gets the fully-qualified name of the file on the client's computer (for example "C:\MyFiles\Test.txt").

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

A string containing the fully-qualified name of the file on the client's computer.

Implements: IAsyncUploadResult.FileName

Gets or sets the index.

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

The index.

Methods

Copies the file info to IAsyncUploadResult.

C#
public static void CopyFileInfo(IAsyncUploadResult result, UploadedFile file)
Parameters:resultIAsyncUploadResult

The result.

fileUploadedFile

The file.