aspnet-devexpress-dot-web-dot-aspxuploadcontrol-1ccb969f.md
Enables you to specify a custom file name for the uploaded file.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public event EventHandler<GenerateFileNameInStorageEventArgs> GenerateFileNameInStorage
Public Event GenerateFileNameInStorage As EventHandler(Of GenerateFileNameInStorageEventArgs)
The GenerateFileNameInStorage event's data class is GenerateFileNameInStorageEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| FileNameInStorage | Gets or sets the name for the file uploaded to the storage. |
| OriginalFileName | Gets the original name of the uploaded file. |
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