UploadControlAzureSettings.ObjectKeyPrefix Property
Gets or sets a prefix that should be added to the name of the uploaded file.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Default | Description |
---|---|---|
String | String.Empty | A string value that is the prefix. |
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to ObjectKeyPrefix |
---|---|---|
ASP.NET Web Forms Controls | ASPxHtmlEditorUploadSettingsBase |
|
ASPxUploadControl |
|
|
ASP.NET MVC Extensions | UploadControlBinderSettings |
|
HtmlEditorFileSaveSettings |
|
|
UploadControlSettings |
|
Remarks
The ObjectKeyPrefix property is used to add the specified prefix to the beginning of the uploaded file name. It helps organize and list uploaded files hierarchically in Azure cloud storage.
ASPxUploadControl1.AzureSettings.ObjectKeyPrefix = "folder1/folder2/"
According to the code sample above, if the “test.txt” file is uploaded to Azure cloud storage, this file will be saved with the name “folder1/folder2/test.txt”.
See Also