0.3.0 • Published 2 years ago
strapi-provider-upload-uploadcare v0.3.0
strapi-provider-upload-uploadcare
Configurations
Your configuration is passed down to the uploadcare configuration. (e.g: UploadClient({})
). You can see the complete list of options here
See the using a provider documentation for information on installing and using a provider. And see the environment variables for setting and using environment variables in your configs.
Example
./config/plugins.js
module.exports = ({ env }) => ({
// ...
upload: {
provider: 'uploadcare',
providerOptions: {
public_key: env('UPLOADCARE_PUBLIC_KEY'),
// secret_key: env('UPLOADCARE_SECRET_KEY'),
// base_cdn: env('UPLOADCARE_BASE_CDN'),
},
},
// ...
});
https://github.com/uploadcare/uploadcare-upload-client#settings
public_key: string
The main use of a public_key
is to identify a target project for your uploads. It is required when using Upload API.
base_cdn: string
Defines your schema and CDN domain. Can be changed to one of the predefined values (https://ucarecdn.com/) or your custom CNAME.
Defaults to https://ucarecdn.com/
.