Azure File System Provider
Set the ASPxFileManager.ProviderType property to Azure to allow ASPxFileManager to operate with files contained in the Azure Service.
The Azure file system provider functionality is implemented by the AzureFileSystemProvider class that defines methods for getting a file and folder hierarchy, and the methods for editing file manager items.
Provider Settings
To connect the ASPxFileManager to Azure cloud storage, register an Azure account in the global.asax file using the AccountManager.RegisterAzure method and then specify the following settings provided by the ASPxFileManager.SettingsAzure property.
- The FileManagerAzureProviderSettings.AccountName: Specifies the name of an Azure account.
- The FileManagerAzureProviderSettings.ContainerName: Specifies the name of the current container.
The ASPxFileManager allows you to perform custom actions on every request to Azure Service by handling the ASPxFileManager.CloudProviderRequest event.
Example
<dx:ASPxFileManager ID="FileManager" runat="server" ProviderType="Azure">
<SettingsAzure AccountName="Azure1" ContainerName="uploadcontainer" />
</dx:ASPxFileManager>
Global.asax:
void Application_Start(object sender, EventArgs e) {
DevExpress.Web.AccountManager.RegisterAzure("Azure1", "StorageName1", "AccessKey1");
}
Online Demo
See Also