Skip to content

Demonstrates how to use the Azure Storage v10 SDK to upload images to Blob Storage from an Express.js application in Node.js.

License

Notifications You must be signed in to change notification settings

MakerFaireOrlando/storage-blob-upload-from-webapp-node-v10

 
 

Repository files navigation

Azure Storage Blob Upload from a Node.js Web Application using the v10 SDK

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.

Getting started

Clone the repository to your machine:

git clone https://github.com/Azure-Samples/storage-blob-upload-from-webapp-node-v10.git

Change into the storage-blob-upload-from-webapp-node-v10 folder:

cd storage-blob-upload-from-webapp-node-v10

Install dependencies via npm:

npm install

Adding your storage account name and key

Navigate 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.

Running the sample

Start the server:

npm start

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.

About

Demonstrates how to use the Azure Storage v10 SDK to upload images to Blob Storage from an Express.js application in Node.js.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 76.7%
  • HTML 20.7%
  • CSS 2.6%