How to access the Azure Storage files in FileExplorer
Manage Files Available in Azure Storage
When overriding, the particular methods were not enough so you can create a custom class using the BasicFileOperations abstract class. It helps to access the Azure Storage files in the file explorer.
Implement the following methods
When you implement a derived class of BasicFileOperations, you must provide implementations for the following methods and its details has been given in this section.
- Read
- CreateFolder
- Remove
- Rename
- Paste
- Upload
- Download
- GetDetails
- GetImage
- Search
In controller part, create an object of AzureFileOperations class as shown in the following code example.
[Controller]
AzureFileOperations operation = new AzureFileOperations("filebrowsercontent", "rbAvmn82fmt7oZ7N/3SXQ9+d9MiQmW2i1FzwAtPfUJL9sb2gZ/+cC6Ei1mkwSbMA1iVSy9hzH1unWfL0fPny0A==", "blob1"); |
After creating the object AzureFileOperations class in the controller part, call the corresponding built-in file operation handling methods available in the AzureFileOperations class based on the file operation type.
The following samples are prepared based on this:
ASP.NET MVC: https://github.com/SyncfusionExamples/EJ1-MVC-file-explorer-to-access-azure-storage
ASP.NET Core: https://github.com/SyncfusionExamples/EJ1-ASP.NET-Core-File-explorer-to-access-azure-storage
ASP.NET Web Forms: https://github.com/SyncfusionExamples/EJ1-ASP-File-manager-to-access-azure-storage