diff --git a/docs/developer-docs/latest/plugins/upload.md b/docs/developer-docs/latest/plugins/upload.md index 048e68b2e2..fa6b5cb2ad 100644 --- a/docs/developer-docs/latest/plugins/upload.md +++ b/docs/developer-docs/latest/plugins/upload.md @@ -142,12 +142,11 @@ In addition to the middleware configuration, you can pass the `sizeLimit`, which ```js -// path: ./config/middlewares.js +// path: ./config/plugins.js -export default { +module.exports = { // ... - { - name: "strapi::body", + upload: { config: { providerOptions: { sizeLimit: 250 * 1024 * 1024 // 256mb in bytes