@strapi/provider-upload-aws-s3 4.1.10-beta.0 → 4.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -21,11 +21,13 @@ yarn add @strapi/provider-upload-aws-s3
|
|
|
21
21
|
npm install @strapi/provider-upload-aws-s3 --save
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
##
|
|
24
|
+
## Configuration
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
- `provider` defines the name of the provider
|
|
27
|
+
- `providerOptions` is passed down during the construction of the provider. (ex: `new AWS.S3(config)`). [Complete list of options](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#constructor-property)
|
|
28
|
+
- `actionOptions` is passed directly to the parameters to each method respectively. You can find the complete list of [upload/ uploadStream options](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#upload-property) and [delete options](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#deleteObject-property)
|
|
27
29
|
|
|
28
|
-
See the [using a provider](https://docs.strapi.io/developer-docs/latest/plugins/upload.html#using-a-provider)
|
|
30
|
+
See the [documentation about using a provider](https://docs.strapi.io/developer-docs/latest/plugins/upload.html#using-a-provider) for information on installing and using a provider. To understand how environment variables are used in Strapi, please refer to the [documentation about environment variables](https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/configurations/optional/environment.html#environment-variables).
|
|
29
31
|
|
|
30
32
|
### Provider Configuration
|
|
31
33
|
|
|
@@ -45,6 +47,11 @@ module.exports = ({ env }) => ({
|
|
|
45
47
|
Bucket: env('AWS_BUCKET'),
|
|
46
48
|
},
|
|
47
49
|
},
|
|
50
|
+
actionOptions: {
|
|
51
|
+
upload: {},
|
|
52
|
+
uploadStream: {},
|
|
53
|
+
delete: {},
|
|
54
|
+
},
|
|
48
55
|
},
|
|
49
56
|
},
|
|
50
57
|
// ...
|
|
@@ -89,6 +96,7 @@ module.exports = [
|
|
|
89
96
|
// ...
|
|
90
97
|
];
|
|
91
98
|
```
|
|
99
|
+
If you use dots in your bucket name, the url of the ressource is in directory style (`s3.yourRegion.amazonaws.com/your.bucket.name/image.jpg`) instead of `yourBucketName.s3.yourRegion.amazonaws.com/image.jpg`. Then only add `s3.yourRegion.amazonaws.com` to img-src and media-src directives.
|
|
92
100
|
|
|
93
101
|
## Required AWS Policy Actions
|
|
94
102
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/provider-upload-aws-s3",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.12",
|
|
4
4
|
"description": "AWS S3 provider for strapi upload",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"upload",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"node": ">=12.22.0 <=16.x.x",
|
|
45
45
|
"npm": ">=6.0.0"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "ab698015cfc4f43fa0ce2ae94ec59e00a67e4cda"
|
|
48
48
|
}
|