Skip to main content

ASPxUploadControl.HasFile Property


Use the UploadedFiles[] property

Gets a value that indicates whether the control has a file.Note: This property is now obsolete; use the ASPxUploadControl.UploadedFiles property instead.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.1.dll

NuGet Package: DevExpress.Web


[Obsolete("Use the UploadedFiles[] property")]
public bool HasFile { get; }

Property Value

Type Description

true if the control contains a file; otherwise, false.


Use the HasFile property to verify whether a file that should be uploaded is specified for the ASPxUploadControl on the client, and this file exists. If the HasFile property is true, the file can be saved by using specific means (for instance, see the ASPxUploadControl.SaveAs method or the ASPxUploadControl.FileBytes and ASPxUploadControl.FileContent properties).

See Also