-1

I am trying to upload a file>10MB in a web project and i get this error maxFileSize exceeded, 10551296 bytes of zone data received (max is 10485760)

so how can I upload a file greater than 10MB? help me please

san
  • 7
  • 3
  • 1
    Welcome to Stackoverflow. Please consider adding a MCVE (see: https://stackoverflow.com/help/minimal-reproducible-example) to your question. – Hagbard Oct 25 '19 at 08:08

1 Answers1

1

The maxFileSize parameter is configured in the datasources.json file:

"storage": {
    "name": "storage",
    "connector": "loopback-component-storage",
    "allowedContentTypes": ["image/jpg", "image/jpeg", "image/png"],
    "provider": "filesystem",
    "maxFileSize":  "1048576",
    "root": "image"
  }
}
MaxAlex
  • 2,919
  • 1
  • 14
  • 14