This sample demonstrates how to use the Azure Storage v10 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-v10.gitChange into the storage-blob-upload-from-webapp-node-v10 folder:
cd storage-blob-upload-from-webapp-node-v10Install dependencies via npm:
npm installNavigate to your storage account in the Azure Portal and copy the account name and key (under Settings > Access keys) into the .env.example file. Save the file and then rename it from .env.example to .env.
Start the server:
npm startNavigate 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.