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 withstorageAcct
.storageContainer
- The name of a storage container that exists understorageAcct
.
In your Express router:
var express = ;var ImageUpload = ; var router = express; { var storageAcct = "yourStorageAcct"; var storageKey = "yourStorageKey"; var storageContainer = "yourStorageContainer"; var imageUpload = storageAcct storageKey storageContainer ; return imageUploadhandler; } router;
When making a POST request:
Include the image in a form data property named image
.