Skip to content

Commit 443f4bc

Browse files
committed
fix conflict when blob already exists
1 parent 40f2f81 commit 443f4bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FileSystem.Adapters.AzureBlobStorage/src/AzureBlobStorageAdapter.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public override async Task WriteFileAsync(string virtualPath, Stream contents, b
237237
{
238238
contents.Seek(0, SeekOrigin.Begin);
239239

240-
await client.UploadBlobAsync(path, contents, cancellationToken);
240+
await client.GetBlobClient(path).UploadAsync(contents, true, cancellationToken);
241241
}
242242
catch (Exception exception)
243243
{

0 commit comments

Comments
 (0)