1.0.6 • Published 10 years ago

express-azure-image-upload v1.0.6

Weekly downloads
14
License
MIT
Repository
github
Last release
10 years ago

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.

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago