# appcore-s3

> Amazon S3 file upload for appcore.

Latest version **2.1.0** (published 2015-11-23) · 0 weekly downloads

## Install

```sh
npm install appcore-s3
pnpm add appcore-s3
yarn add appcore-s3
bun add appcore-s3
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2015-11-23 |
| First published | 2015-11-23 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | mrgalaxy |

## Links

- npm: https://www.npmjs.com/package/appcore-s3
- Repository: https://beneaththeink.git.beanstalkapp.com/appcore-s3
- npm.io page: https://npm.io/package/appcore-s3

## Dependencies (3)

- [knox](https://npm.io/package/knox.md) ~0.9.2
- [bluebird](https://npm.io/package/bluebird.md) ~2.9.32
- [underscore](https://npm.io/package/underscore.md) ~1.8.3

## Recent versions

- 2.1.0 (latest) — 2015-11-23

## README

# 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.

```js
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

---
_Source: https://npm.io/package/appcore-s3 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
