An open API service indexing awesome lists of open source software.

https://github.com/bgdsh/strapi-provider-upload-aws-s3-plus


https://github.com/bgdsh/strapi-provider-upload-aws-s3-plus

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# strapi-provider-upload-aws-s3-plus

```js
upload: {
provider: 'aws-s3-plus',
providerOptions: {
accessKeyId: env('AWS_ACCESS_KEY_ID'),
secretAccessKey: env('AWS_ACCESS_SECRET'),
region: env('AWS_REGION'),
// features added - start
uploadPath: env("AWS_S3_UPLOAD_PATH", "strapi/"),
baseUrl: env("AWS_S3_BASE_URL", "https://your-domain.com/"),
// features added - end
params: {
Bucket: env('AWS_BUCKET'),
},
},
},
```

---

# strapi-provider-upload-aws-s3

## Configurations

Your configuration is passed down to the provider. (e.g: `new AWS.S3(config)`). You can see the complete list of options [here](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#constructor-property)

See the [using a provider](https://strapi.io/documentation/v3.x/plugins/upload.html#using-a-provider) documentation for information on installing and using a provider. And see the [environment variables](https://strapi.io/documentation/v3.x/concepts/configurations.html#environment-variables) for setting and using environment variables in your configs.

**Example**

`./config/plugins.js`

```js
module.exports = ({ env }) => ({
// ...
upload: {
provider: 'aws-s3',
providerOptions: {
accessKeyId: env('AWS_ACCESS_KEY_ID'),
secretAccessKey: env('AWS_ACCESS_SECRET'),
region: env('AWS_REGION'),
params: {
Bucket: env('AWS_BUCKET'),
},
},
},
// ...
});
```

## Resources

- [License](LICENSE)

## Links

- [Strapi website](http://strapi.io/)
- [Strapi community on Slack](http://slack.strapi.io)
- [Strapi news on Twitter](https://twitter.com/strapijs)