Back to Devexpress

ASPxUploadControl.GenerateFileNameInStorage Event

aspnet-devexpress-dot-web-dot-aspxuploadcontrol-1ccb969f.md

latest1.9 KB
Original Source

ASPxUploadControl.GenerateFileNameInStorage Event

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

Declaration

csharp
public event EventHandler<GenerateFileNameInStorageEventArgs> GenerateFileNameInStorage
vb
Public Event GenerateFileNameInStorage As EventHandler(Of GenerateFileNameInStorageEventArgs)

Event Data

The GenerateFileNameInStorage event's data class is GenerateFileNameInStorageEventArgs. The following properties provide information specific to this event:

PropertyDescription
FileNameInStorageGets or sets the name for the file uploaded to the storage.
OriginalFileNameGets 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

ASPxUploadControl Class

ASPxUploadControl Members

DevExpress.Web Namespace