Skip to content
Demonstrates how to use Azure Storage SDK to upload images to Blob Storage from an Express.js application in Node.js
JavaScript HTML CSS
Branch: master
Clone or download
Latest commit 4c15352 Sep 14, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Initial commit Apr 6, 2018
bin Initial commit Apr 6, 2018
public Update view to better style upload element Apr 20, 2018
routes Add thumbnail support Apr 23, 2018
views Update index view Apr 27, 2018
.env.example Initial commit Apr 6, 2018
.gitignore Initial commit Apr 6, 2018
CHANGELOG.md Initial commit Apr 6, 2018
CONTRIBUTING.md Initial commit Apr 6, 2018
LICENSE.md Initial commit Apr 6, 2018
README.md Update README.md Sep 13, 2019
app.js Initial commit Apr 6, 2018
config.js Add thumbnail support Apr 23, 2018
package-lock.json Add thumbnail support Apr 23, 2018
package.json Add thumbnail support Apr 23, 2018

README.md

page_type languages products description urlFragment
sample
javascript
html
azure
Azure Storage Blob Upload from a Node.js Web Application
storage-blob-upload-from-webapp-node

Azure Storage Blob Upload from a Node.js Web Application

This sample demonstrates how to use the Azure Storage 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.git

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

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

Install dependencies via npm:

npm install

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

You can’t perform that action at this time.