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
- Host: GitHub
- URL: https://github.com/bgdsh/strapi-provider-upload-aws-s3-plus
- Owner: bgdsh
- License: other
- Created: 2020-11-29T08:02:09.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-29T09:29:19.000Z (over 4 years ago)
- Last Synced: 2025-01-30T23:41:20.616Z (5 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)