mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
Fixes #5896 - AzureFileStorageProvider
Needs verification that this will not break anything else - don't think it will.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user