From d64541d47afdb30b3fe790d169814b248114bbf1 Mon Sep 17 00:00:00 2001 From: Gustavo Tandeciarz Date: Wed, 14 Oct 2015 10:15:06 -0400 Subject: [PATCH] Fixes #5896 - AzureFileStorageProvider Needs verification that this will not break anything else - don't think it will. --- .../Orchard.Azure/Services/FileSystems/AzureFileSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard.Web/Modules/Orchard.Azure/Services/FileSystems/AzureFileSystem.cs b/src/Orchard.Web/Modules/Orchard.Azure/Services/FileSystems/AzureFileSystem.cs index 713f6f8f9..2ff22df9c 100644 --- a/src/Orchard.Web/Modules/Orchard.Azure/Services/FileSystems/AzureFileSystem.cs +++ b/src/Orchard.Web/Modules/Orchard.Azure/Services/FileSystems/AzureFileSystem.cs @@ -355,7 +355,7 @@ namespace Orchard.Azure.Services.FileSystems { // as opposed to the File System implementation, if nothing is done on the stream // the file will be emptied, because Azure doesn't implement FileMode.Truncate _blob.DeleteIfExists(); - _blob = _blob.Container.GetBlockBlobReference(_blob.Uri.ToString()); + _blob = _blob.Container.GetBlockBlobReference(_blob.Name); _blob.UploadFromStream(new MemoryStream(new byte[0])); return OpenWrite(); }