@strapi/provider-upload-cloudinary 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 +6 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -21,13 +21,13 @@ yarn add @strapi/provider-upload-cloudinary
|
|
|
21
21
|
npm install @strapi/provider-upload-cloudinary --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: `cloudinary.config`). [Complete list of options](https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters)
|
|
28
|
+
- `actionOptions` is passed directly to each method respectively allowing for custom options. You can find the complete list of [upload/ uploadStream options](https://cloudinary.com/documentation/image_upload_api_reference#upload_optional_parameters) and [delete options](https://cloudinary.com/documentation/image_upload_api_reference#destroy_optional_parameters)
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
See the [using a provider](https://docs.strapi.io/developer-docs/latest/plugins/upload.html#using-a-provider) documentation for information on installing and using a provider. And see the [environment variables](https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/configurations/optional/environment.html#environment-variables) for setting and using environment variables in your configs.
|
|
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).
|
|
31
31
|
|
|
32
32
|
### Provider Configuration
|
|
33
33
|
|
|
@@ -46,6 +46,7 @@ module.exports = ({ env }) => ({
|
|
|
46
46
|
},
|
|
47
47
|
actionOptions: {
|
|
48
48
|
upload: {},
|
|
49
|
+
uploadStream: {},
|
|
49
50
|
delete: {},
|
|
50
51
|
},
|
|
51
52
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/provider-upload-cloudinary",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.12",
|
|
4
4
|
"description": "Cloudinary provider for strapi upload",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"upload",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"test": "echo \"no tests yet\""
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@strapi/utils": "4.1.
|
|
39
|
+
"@strapi/utils": "4.1.12",
|
|
40
40
|
"cloudinary": "^1.25.1",
|
|
41
41
|
"into-stream": "^5.1.0"
|
|
42
42
|
},
|
|
@@ -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
|
}
|