strapi/packages/strapi-provider-upload-local
Jorrit Schippers 175422d760
Update .npmignore files (#8865)
Add .editorconfig, .snyk, __tests__, jest.config.js
Remove .npmignore and .gitignore from admin subdirectories

Signed-off-by: Jorrit Schippers <jorrit@ncode.nl>
2021-01-28 16:57:29 +01:00
..
2020-09-29 12:00:25 +02:00
2021-01-28 16:57:29 +01:00
2020-07-08 09:45:28 +02:00

strapi-provider-upload-local

Configurations

This provider has only one parameter: sizeLimit.

Example

./extensions/upload/config/settings.json

{
  "provider": "local",
  "providerOptions": {
    "sizeLimit": 100000
  }
}

The sizeLimit parameter must be a number. Be aware that the unit is in bytes, and the default is 1000000. 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