This sample demonstrates how to use the Azure Storage SDK in the context of an Express application to upload images into Azure Blob Storage.
Clone the repository to your machine:
git clone https://github.com/Azure-Samples/storage-blob-upload-from-webapp-node.git
Change into the
Install dependencies via
Adding a connection string
Navigate to the Azure Portal and copy the connection string from your storage account (under Settings > Access keys) in to the
.env.example file. Once you have pasted your connection string in to the file, rename the file from
Running the sample
Start the server:
Navigate to http://localhost:3000 and upload an image to blob storage.
You can use the Azure Storage Explorer to view blob containers and verify your upload is successful.