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

mongoose-attachments-aws

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-attachments-aws

AWS S3 Storage Provider for mongoose-attachments

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

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 = require('mongoose-attachments-aws');

For further instructions check mongoose-attachments.

Configuration

Provider Name

aws

Options
  • region: the s3 region
  • key: the s3 accessKeyId
  • secret: the s3 secretAccessKey
  • bucket: the s3 bucket in which to place the file
  • endpoint: defaults to 'https://s3.amazonaws.com/'
  • acl: defaults to 'private'

For other configurations check mongoose-attachments.

var storage = {}
storage.providerName = 'aws'
storage.options = {
  'region': '<region>',
  'key'   : '<key>',
  'secret': '<secret>',
  'bucket': '<bucket>',
  'acl'   : 'public-read'
}

require('mongoose-attachments-aws')

schema.plugin(require('mongoose-attachments'), {
  directory: 'images',
  storage: storage,
  properties: buildProperties()
})

License (Apache 2.0)

Copyright (c) 2015 TWG - http://www.theworkinggroup.ca

Keywords

FAQs

Package last updated on 15 Dec 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