ASPxUploadControl.GenerateFileNameInStorage Event
In This Article
Enables you to specify a custom file name for the uploaded file.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public event EventHandler<GenerateFileNameInStorageEventArgs> GenerateFileNameInStorage
#Event Data
The GenerateFileNameInStorage event's data class is GenerateFileNameInStorageEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
File |
Gets or sets the name for the file uploaded to the storage. |
Original |
Gets the original name of the uploaded file. |
#Remarks
The GenerateFileNameInStorage event occurs after a user clicks the Update button. Use the GenerateFileNameInStorage event to specify a custom file name for the uploaded file.
If the GenerateFileNameInStorage event is handled, the UploadControlUploadStorageSettingsBase.GenerateUniqueFileNamePrefix property is not in effect.
See Also