Skip to content

Commit

Permalink
Merge pull request #5952 from dcinzona/patch-2
Browse files Browse the repository at this point in the history
Fixes #5896 - AzureFileStorageProvider
  • Loading branch information
sebastienros committed Oct 15, 2015
2 parents 9105187 + d64541d commit dd9d67f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ public Stream CreateFile() {
// 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();
}
Expand Down

0 comments on commit dd9d67f

Please sign in to comment.