ASPxUploadControl.GetRandomFileName() Method
Returns a random name generated for the uploaded file.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v18.2.dll
Declaration
Returns
Type | Description |
---|---|
String | A String value representing a random file name. |
Remarks
Sometimes, the uploaded file’s client name, which can be obtained via the ASPxUploadControl.FileName property, may not suit your application’s requirements. In this case, you can call the GetRandomFileName method to generate a random name for the file. The generated file name can be used when saving the file via the ASPxUploadControl.SaveAs method.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the GetRandomFileName() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.