Skip to content

Commit c06e2f4

Browse files
committed
Blob Storage - JS - blob upload methods
1 parent 8a98dd5 commit c06e2f4

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

articles/storage/blobs/storage-blob-upload-javascript.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: storage
55
author: normesta
66

77
ms.author: normesta
8-
ms.date: 03/28/2022
8+
ms.date: 07/18/2022
99
ms.service: storage
1010
ms.subservice: blobs
1111
ms.topic: how-to
@@ -22,6 +22,16 @@ The [sample code snippets](https://github.com/Azure-Samples/AzureStorageSnippets
2222
> [!NOTE]
2323
> The examples in this article assume that you've created a [BlobServiceClient](/javascript/api/@azure/storage-blob/blobserviceclient) object by using the guidance in the [Get started with Azure Blob Storage and JavaScript](storage-blob-javascript-get-started.md) article. Blobs in Azure Storage are organized into containers. Before you can upload a blob, you must first create a container. To learn how to create a container, see [Create a container in Azure Storage with JavaScript](storage-blob-container-create.md).
2424
25+
## Upload by blob client
26+
27+
Use the following table to find the correct upload method based on the blob client.
28+
29+
|Client|Upload method|
30+
|--|--|
31+
|[BlobClient](/javascript/api/@azure/storage-blob/blobclient)|The SDK would needs to know the blob type you want to upload to. Because this is the base class for the other Blob clients, it does not have upload methods. It is mostly useful for operations that are common to the child blob classes. For uploading, create specific blob clients directly or get specific blob clients from ContainerClient.|
32+
|[BlockBlobClient](/javascript/api/@azure/storage-blob/blockblobclient)|* upload()<br>* stageBlock() and commitBlockList()|
33+
|[AppendBlobClient](/javascript/api/@azure/storage-blob/appendblobclient)|* create()<br>* append()|
34+
|[PageBlobClient](/javascript/api/@azure/storage-blob/pageblobclient)|* create()<br>* appendPages()|
2535

2636
## Upload by using a file path
2737

0 commit comments

Comments
 (0)