mirror of
https://github.com/strapi/strapi.git
synced 2025-11-16 01:57:56 +00:00
* Fix invalid local uploads path File upload provider does not consider the strapi configuration. This patch should fix the problem. * getStaticPath -> uploadDir * Use config.get method * plugin-upload tests fix
strapi-provider-upload-local
Configurations
Your configuration is passed down to the cloudinary configuration. (e.g: cloudinary.config(config)). You can see the complete list of options here
Example
./extensions/upload/config/settings.json
{
"provider": "cloudinary",
"providerOptions": {
"sizeLimit": 100000
}
}
The sizeLimit parameter must be a number. Be aware that the unit is in KB. When setting this value high, you should make sure to also configure the body parser middleware maxFileSize so the file can be sent and processed. Read more here
Resources
Links