mongoose-crate-s3
A StorageProvider for mongoose-crate that stores files in Amazon S3 buckets
Usage
const mongoose = const crate = const S3 = const path = const PostSchema = title: String description: String PostSchema const Post = mongoose
.. then later:
const post = post
Regions
By default the region is assumed to be us-standard
. The region is used to assemble the endpoint so please specify a different one if you are hosting in Europe, for example.
A full list of valid S3 regions is available from the AWS documentation website.