@chakrahq/strapi-provider-upload-aws-s3
v0.1.1
Published
AWS S3 provider for strapi upload, with additional optional features over the official AWS S3 provider
Downloads
2
Readme
Small enhancements to strapi-provider-upload-aws-s3 to support some optional configurations.
Original source is here.
package.json:
{
//...
"dependencies": {
//...
"strapi-provider-upload-aws-s3": "npm:@chakrahq/[email protected]",
//...
},
// ...
}
config/plugins.js:
module.exports = ({ env }) => {
//...
upload: {
provider: 'aws-s3',
providerOptions: {
accessKeyId: env('AWS_S3_KEY'),
secretAccessKey: env('AWS_S3_SECRET'),
region: env('AWS_S3_REGION'),
params: {
Bucket: env('AWS_S3_BUCKET'),
},
baseUrl: env('AWS_S3_CDN'),
prefix: 'images/',
ACL: 'public-read',
},
},
//...
};
Notes:
baseUrl
- should be a full URL without a trailing slash. Example:https://cdn.example.com
prefix
- should have a trailing slash if it's required. Example:images/
ACL
- should be from the list of canned ACLs as described here. Example:private