mongoose-attachments-aws
AWS S3 Storage Provider for mongoose-attachments.
Installation
$ npm install mongoose-attachments-aws
Usage
The library will register automatically with mongoose-attachments
by performing require
and return a reference to the mongoose-attachments
plugin:
var attachments = ;
For further instructions check mongoose-attachments.
Configuration
Provider Name
aws
Options
region
: the s3 regionkey
: the s3 accessKeyIdsecret
: the s3 secretAccessKeybucket
: the s3 bucket in which to place the fileendpoint
: defaults to 'https://s3.amazonaws.com/'acl
: defaults to 'private'
For other configurations check mongoose-attachments.
var storage = {}storageproviderName = 'aws'storageoptions = 'region': '<region>' 'key' : '<key>' 'secret': '<secret>' 'bucket': '<bucket>' 'acl' : 'public-read' schema
License (Apache 2.0)
Copyright (c) 2015 TWG - http://www.theworkinggroup.ca