Skip to content

Failing to increase maxFileSize to upload files larger than 200 MB #7035

@Hellwest

Description

@Hellwest

When I try to configure upload max file size it's always stuck at default value of 200 MB

Steps to reproduce the behavior
https://github.com/Hellwest/strapi-failing-upload-max-size (see commit history)

  1. Initialize Strapi app with docker (I'm using PostgreSQL database)
  2. Try to adjust your configurations in config/request.js
module.exports = {
  parser: {
    enabled: true,
    multipart: true,
    formidable: {
      maxFileSize: 900 * 1024 * 1024,
    },
  },
}

It fails.
3. Try to configure in extensions/upload/config/config.js

module.exports = {
  enabled: true,
  provider: "local",
  providerOptions: {
    sizeLimit: 900 * 1024 * 1024,
  },
}

It fails.

Expected behavior
I can upload a 700MB mp4 video file

Actual behavior/Screenshots
image

You can see maxFileSize is still ~200 MB on the screen

System

  • Node.js version: 12.18.2
  • NPM version: 6.14.5
  • Strapi version: 3.0.5
  • Database: PostgreSQL
  • Operating system: Ubuntu 18.04/Linux Mint 19.3/Linux Mint 20

Additional context
Similar issues: #4156, #1975, #1906 and maybe #2737 (Suggested solutions don't work. I'm not using nginx, it's a clean repository, so body size can't be configured any other way)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions