File System Providers Overview
- 2 minutes to read
A file system provider is an API for access to the virtual file system in the ASPxFileManager control. This API provides the definition of methods for getting a file and folder hierarchy. It also provides the methods for editing file manager items like creating a folder, renaming files/folders, deleting files/folders, etc. The ASPxFileManager control uses the provider for all operations in the file system.
The ASPxFileManager supports the following file systems:
- stored on a physical disk;
- net shared disk;
- stored in a database;
- cloud storages: Amazon Simple Storage Service (Amazon S3), Azure Service and Dropbox Service
- custom storage.
File Manager Provider Types
To specify a type of a file system provider used by file manager, use the ASPxFileManager.ProviderType property. The available values are listed below.
- ASPxFileManager has five predefined file system provider types.
- Physical. File manager uses the Physical File System Provider to work with the server’s physical file system.
- DataSource. File manager uses the DataSource File System Provider to access file system information in a data source.
- Amazon. File manager uses the Amazon File System Provider to access a file system retained in Amazon Simple Storage Service (Amazon S3).
- Azure. File manager uses the Azure File System Provider to access a file system retained in Azure Service.
Dropbox. File manager uses the Dropbox File System Provider to access a file system retained in Dropbox Service.
In addition to the predefined file system providers, you can implement a custom file system provider.
Custom. Allows you to create your own custom provider, inherited from a FileSystemProviderBase class or one of the predefined provider classes. To learn more, see the Custom File System Provider topic.
The following option (default value) has been created to provide the compatibility with the earlier control version.
- NotSet. The type of file system provider is determined automatically. If the ASPxFileManager.CustomFileSystemProvider or ASPxFileManager.CustomFileSystemProviderTypeName property is specified, the file manager uses the custom file system provider. Otherwise, if the ASPxFileManager.DataSource or ASPxFileManager.DataSourceID property is specified, the control uses the data source file system provider. In all other cases the physical data system provider is used.