Skip to main content
Tab

UploadControlAzureSettings Class

Contains settings that allow you to connect the Upload Control to Azure.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public class UploadControlAzureSettings :
    UploadControlUploadStorageSettingsBase

The following members return UploadControlAzureSettings objects:

Library Related API Members
ASP.NET Web Forms Controls ASPxHtmlEditorUploadSettingsBase.AzureSettings
ASPxUploadControl.AzureSettings
ASP.NET MVC Extensions HtmlEditorFileSaveSettings.AzureSettings
UploadControlBinderSettings.AzureSettings
UploadControlSettings.AzureSettings

Remarks

Follow the steps below to connect the Upload Control to Azure:

  1. Call the RegisterAzure method in the Global.asax file.
  2. Set the Upload Control’s UploadStorage property to Azure.
  3. Assign an Azure account’s name to the AzureSettings.AccountName property.
  4. Assign a container name to the AzureSettings.ContainerName property. Refer to the following topic for more information: Naming and Referencing Containers, Blobs, and Metadata.

The following example demonstrates how to connect the Upload Control to Azure:

void Application_Start(object sender, EventArgs e) {
    DevExpress.Web.AccountManager.RegisterAzure("YourAzureAccount", "YourStorageName", "YourAccessKey");
}
<dx:ASPxUploadControl ID="UploadControl" runat="server" UploadStorage="Azure" ShowUploadButton="True" >
    <AzureSettings AccountName="YourAzureAccount" ContainerName="YourContainerName" />
</dx:ASPxUploadControl>

Once the Upload Control uploads a file to cloud storage, you can use the key name of this file to access it. To obtain a file key name, use the FileNameInStorage property of an UploadedFile object.

See Also