strapi:master ← bglidwell:feature/cloudinary-options
opened 10:34PM - 25 Jan 21 UTC
Supports options object in providerOptions which can contain any cloudinary uplo…ad/delete options
<!--
Hello 👋 Thank you for submitting a pull request.
To help us merge your PR, make sure to follow the instructions below:
- Create or update the documentation. (Should be made against the documentation branch)
- Create or update the tests.
- Refer to the issue you are closing in the PR description - fix #issue
- Specify if the PR is in WIP (work in progress) state or ready to be merged
Please ensure you read through the Contributing Guide: https://github.com/strapi/strapi/blob/master/CONTRIBUTING.md
-->
### Linked Issues
#5069
### What does it do?
Adds support for options in cloudinary plugin config
```js
upload: {
provider: 'cloudinary',
providerOptions: {
cloud_name: env('CLOUDINARY_NAME'),
api_key: env('CLOUDINARY_KEY'),
api_secret: env('CLOUDINARY_SECRET'),
options: {
folder: env('CLOUDINARY_FOLDER')
}
},
},
```
### Why is it needed?
setting cloudinary options such as a default folder per environment
### Related issue(s)/PR(s)
Let us know if this is related to any issue/pull request