Skip to content

Upload files file(images, videos etc) to Azure blob storage and get SAS attached URL, using JavaScript v12 SDK , Nodejs (Expressjs) and Angular 15.

License

Notifications You must be signed in to change notification settings

nitin27may/azure-blob-upload-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Blob file Upload (JavaScript v12 SDK - @azure/storage-blob)

This is a sample project for uploading (images, videos etc ) using JavaScript v12 SDK (@azure/storage-blob) in Node.js and get a SAS url to access the files.

We have used Angular 15.0.3 for the for frontend (Drag and Drop) and expresjs to expose rest apis to upload file and get SAS token attached URLs.

Getting started

  1. Clone the project (you can download too) and run npm install in frontend and api folders to install all depndencies.
  2. Navigate to api folder. Rename .env.example to .env and add your Azure storage details (Storage account name, key also add connection string).
  3. Run npm run dev-server in frontend and api folder. It will start both frontend and api in development mode.
 git clone https://github.com/nitin27may/azure-blob-upload.git

 cd azure-blob-upload/api

 npm i
 
 npm run dev-server

 cd azure-blob-upload/frontend

 npm i

 npm run dev-server

About

Upload files file(images, videos etc) to Azure blob storage and get SAS attached URL, using JavaScript v12 SDK , Nodejs (Expressjs) and Angular 15.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published