Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-azure-image-upload

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-azure-image-upload

A drop-in route handler that places an image in an Azure Storage Container and returns its blob URL

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by700%
Maintainers
1
Weekly downloads
 
Created
Source

Usage

When creating an instance of ImageUpload you will need to provide three parameters:

  • storageAcct - The name of the Azure storage account being used for images.
  • storageKey - The access key associated with storageAcct.
  • storageContainer - The name of a storage container that exists under storageAcct.

In your Express router:

var express = require( "express" );
var ImageUpload = require( "express-azure-image-upload" );

var router = express.Router();


function imageHandler () {

    var storageAcct = "yourStorageAcct";
    var storageKey = "yourStorageKey";
    var storageContainer = "yourStorageContainer";

    var imageUpload = new ImageUpload( storageAcct, storageKey, storageContainer );

    return imageUpload.handler;

}


router.post( "/whatever", imageHandler() );

When making a POST request:

Include the image in a form data property named image.

Keywords

FAQs

Package last updated on 30 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc