Skip to content

Commit

Permalink
Merge pull request strapi#7373 from remi2j/local-upload-readme
Browse files Browse the repository at this point in the history
Fix strapi-provider-upload-local readme
  • Loading branch information
alexandrebodin committed Aug 10, 2020
2 parents 0ece30b + 5fcbcaa commit 0b8bd2c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/strapi-provider-upload-local/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@

## 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)
This provider has only one parameter: `sizeLimit`.

**Example**

`./extensions/upload/config/settings.json`

```json
{
"provider": "cloudinary",
"provider": "local",
"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](https://strapi.io/documentation/v3.x/plugins/upload.html#configuration)
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](https://strapi.io/documentation/v3.x/plugins/upload.html#configuration)

## Resources

Expand All @@ -28,7 +28,3 @@ The `sizeLimit` parameter must be a number. Be aware that the unit is in KB. Whe
- [Strapi website](http://strapi.io/)
- [Strapi community on Slack](http://slack.strapi.io)
- [Strapi news on Twitter](https://twitter.com/strapijs)

```
```

0 comments on commit 0b8bd2c

Please sign in to comment.