mirror of
https://github.com/strapi/strapi.git
synced 2025-08-12 18:53:23 +00:00
37 lines
1.1 KiB
Markdown
37 lines
1.1 KiB
Markdown
# strapi-provider-upload-cloudinary
|
|
|
|
## Configurations
|
|
|
|
Your configuration is passed down to the cloudinary configuration. (e.g: `cloudinary.config(config)`). You can see the complete list of options [here](https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters)
|
|
|
|
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: "cloudinary",
|
|
providerOptions: {
|
|
cloud_name: env('CLOUDINARY_NAME'),
|
|
api_key: env('CLOUDINARY_KEY'),
|
|
api_secret: env('CLOUDINARY_SECRET')
|
|
}
|
|
},
|
|
// ...
|
|
});
|
|
```
|
|
|
|
## Resources
|
|
|
|
- [MIT License](LICENSE.md)
|
|
|
|
## Links
|
|
|
|
- [Strapi website](http://strapi.io/)
|
|
- [Strapi community on Slack](http://slack.strapi.io)
|
|
- [Strapi news on Twitter](https://twitter.com/strapijs)
|