Strapi Error: maxFileSize exceeded, received 209779528 bytes

System Information
  • Strapi Version: 3.0.4
  • Operating System: Ubuntu 20.10
  • Database: MongoDB
  • Node Version: v13.7.0
  • NPM Version: 6.13.6
  • Yarn Version:

Hi,
i’m woking with STRAPI v3.0.4, if i try to upload e file greather then 209779528 bytes I have this error “strapi error Error: maxFileSize exceeded, received 209779528 bytes”.
I modified /…/strapi/config/middleware.js file in this way and after run “npm run build”, but it dosen’ work.
Could you help me?

module.exports = {
settings: {
parser: {
enabled: true,
multipart: true,
formidable: {
maxFileSize: 545259520,
},
},
},
};

related GitHub issue:

Can you please provide the information I mentioned in that comment:

Can you please try testing with the current latest version? v3.3.3 (you specified Strapi Version: 3.0.4 as your version)

I tested with latest version, but the problem remain. To solve it is necessary also add this code to …/strapi/config/middleware.js file:
parser: { enabled: true, multipart: true, formidable: { maxFileSize: 10737418240 } }

In the latest version, you get the same error as in 3.0.4?

yes, to solve it is necessary ALSO add code to strapi/config/middleware.js file