strapi/packages/strapi-provider-upload-local
Bartosz 8c40d2192d
Fix invalid local uploads path (#6925)
* 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
2020-07-27 17:18:55 +02:00
..
2018-10-19 09:26:09 +02:00
2019-04-16 09:05:47 +02:00
2018-10-19 09:26:09 +02:00
2020-07-08 09:45:28 +02:00
2020-07-23 18:53:55 +02:00
2020-07-20 18:40:52 +02:00

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