Fixes #5896 - AzureFileStorageProvider

Needs verification that this will not break anything else - don't think it will.
This commit is contained in:
Gustavo Tandeciarz
2015-10-14 10:15:06 -04:00
parent 9c88c7fcd1
commit d64541d47a

View File

@@ -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();
}