AsyncPostedFile
This Class implements all the properties, constructors and methods of the Uploaded Files.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class AsyncPostedFile : UploadedFile
Inheritance: objectUploadedFileAsyncPostedFile
Inherited Members
Constructors
public AsyncPostedFile(UploadedFile postedFile, string fullPath, long contentLength, bool chunkRequest)
public AsyncPostedFile(UploadedFile postedFile, string fullPath, long contentLength)
Properties
Gets the size in bytes of an uploaded file.
public override long ContentLength { get; }
The length of the file.
Overrides:
Gets the MIME content type of a file sent by a client.
public override string ContentType { get; }
The MIME content type of the uploaded file.
Overrides:
Gets the fully-qualified name of the file on the client's computer (for example "C:\MyFiles\Test.txt").
public override string FileName { get; }
A string containing the fully-qualified name of the file on the client's computer.
Overrides:
protected override string InputFieldName { get; }
Overrides:
Gets a Stream object which points to the uploaded file to prepare for reading the contents of the file.
public override Stream InputStream { get; }
A Stream pointing to the file.
Overrides:
Methods
Saves the contents of an uploaded file.
public override void SaveAs(string fullName, bool overwrite)
true to allow an existing file to be overwritten; otherwise, false.
Overrides:
The maximum allowed uploaded file size is 4MB by default. Maximum file size can be specified in the machine.config or Web.config configuration files in the maxRequestLength attribute of the <httpRuntime> element.
The ASP.NET process must have proper rights for writing on the folder where the files are saved.