diff --git a/CHANGELOG.md b/CHANGELOG.md index cf4bb63..173e0ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 17.3.26 (2019-11-05) + +### Azure Cloud File System Provider + +#### Breaking Changes + +- Now, the `setBlobContainer` method is renamed as `SetBlobContainer`. + ## 17.3.14 (2019-10-04) ### Azure Cloud File System Provider diff --git a/Controllers/AzureProviderController.cs b/Controllers/AzureProviderController.cs index 83a2081..29998ee 100644 --- a/Controllers/AzureProviderController.cs +++ b/Controllers/AzureProviderController.cs @@ -22,6 +22,11 @@ public AzureProviderController(IHostingEnvironment hostingEnvironment) this.operation = new AzureFileProvider(); this.operation.RegisterAzure("<--accountName-->", "<--accountKey-->", "<--blobName-->"); this.operation.SetBlobContainer("<--blobPath-->", "<--filePath-->"); + //---------- + //for example + //this.operation.RegisterAzure("azure_service_account", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "files"); + //this.operation.setBlobContainer("https://azure_service_account.blob.core.windows.net/files/", "https://azure_service_account.blob.core.windows.net/files/Files"); + //--------- } [Route("AzureFileOperations")] public object AzureFileOperations([FromBody] FileManagerDirectoryContent args) @@ -30,6 +35,11 @@ public object AzureFileOperations([FromBody] FileManagerDirectoryContent args) { string startPath = "<--blobPath-->"; string originalPath = ("<--filePath-->").Replace(startPath, ""); + //----------------- + // for example + //string startPath = "https://azure_service_account.blob.core.windows.net/files/"; + //string originalPath = ("https://azure_service_account.blob.core.windows.net/files/Files").Replace(startPath, ""); + //------------------- args.Path = (originalPath + args.Path).Replace("//", "/"); args.TargetPath = (originalPath + args.TargetPath).Replace("//", "/"); } @@ -83,6 +93,12 @@ public ActionResult AzureUpload(FileManagerDirectoryContent args) string startPath = "<--blobPath-->"; string originalPath = ("<--filePath-->").Replace(startPath, ""); args.Path = (originalPath + args.Path).Replace("//", "/"); + //---------------------- + //for example + //string startPath = "https://azure_service_account.blob.core.windows.net/files/"; + //string originalPath = ("https://azure_service_account.blob.core.windows.net/files/Files").Replace(startPath, ""); + //args.Path = (originalPath + args.Path).Replace("//", "/"); + //---------------------- } operation.Upload(args.Path, args.UploadFiles, args.Action, args.Data); return Json(""); diff --git a/Models/AzureFileProvider.cs b/Models/AzureFileProvider.cs index 14b2c31..6fccc1f 100644 --- a/Models/AzureFileProvider.cs +++ b/Models/AzureFileProvider.cs @@ -948,10 +948,5 @@ protected virtual string WildcardToRegex(string pattern) { return "^" + Regex.Escape(pattern).Replace(@"\*", ".*").Replace(@"\?", ".") + "$"; } - - public void setDownloadPath(string downloadLocation) - { - throw new NotImplementedException(); - } } } diff --git a/Syncfusion.EJ2.FileManager.AzureFileProvider.AspNet.Core.csproj b/Syncfusion.EJ2.FileManager.AzureFileProvider.AspNet.Core.csproj index 2e70230..1f78163 100644 --- a/Syncfusion.EJ2.FileManager.AzureFileProvider.AspNet.Core.csproj +++ b/Syncfusion.EJ2.FileManager.AzureFileProvider.AspNet.Core.csproj @@ -4,9 +4,9 @@ 14.0 Syncfusion.EJ2.FileManager.AzureFileProvider Syncfusion.EJ2.FileManager.AzureFileProvider - 17.2.0.34 - 17.2.0.34 - 17.2.0.34 + 17.4.0.40 + 17.4.0.40 + 17.4.0.40 Syncfusion file manager Azure file provider for Essential JS 2 Syncfusion Inc. Syncfusion.EJ2.FileManager.AzureFileProvider @@ -26,7 +26,7 @@ - + diff --git a/web.config b/web.config index 90cc68a..85f1af1 100644 --- a/web.config +++ b/web.config @@ -9,9 +9,7 @@ - - - + \ No newline at end of file