Skip to main content
A newer version of this page is available. .
Tab

ASPxUploadControl.GenerateFileNameInStorage Event

Enables you to specify a custom file name for the uploaded file.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

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
FileNameInStorage Gets or sets the name for the file uploaded to the storage.
OriginalFileName 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