🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

appcore-s3

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appcore-s3

Amazon S3 file upload for appcore.

latest
npmnpm
Version
2.1.0
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

Amazon S3 Upload Adaptor for Appcore Files

This is an S3 upload adaptor for Appcore files. It allows file data to be saved at any arbitrary path in an S3 bucket.

app.use(require("appcore-s3"));

// later
app.ready(function() {
    app.files.upload(fileData, {
        filename: "myfile.jpg",
        s3path: "/user123/myfile.jpg" // the path in the bucket, required
    }, function(err, res) {
        res.url; // -> The full S3 url to the file
    });
});

The following application config keys need to be set:

  • s3.key - S3 access key
  • s3.secret - S3 secret token
  • s3.bucket - S3 bucket name

FAQs

Package last updated on 23 Nov 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