From a30adc06b56d3df463b533c6d1334e36b15f8906 Mon Sep 17 00:00:00 2001 From: Shaun Brown Date: Mon, 3 Oct 2022 14:58:09 +0200 Subject: [PATCH] fix upload code example --- docs/developer-docs/latest/plugins/upload.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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