Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

159
Views
Gatsby Functions: PayloadTooLargeError: request entity too large

I'm building an app with Gatsby and I'm using Gatsby Functions to obfuscate form submissions to a remote API. In this form, the user attaches a file, which can make the request exceed the default size limit of 100KB. There are other answers on StackOverflow which address this question in a node/express environment, however I cannot find how to change the limit using Gatsby.

For example, this is how to increase the limit in express:

app.use(express.json({limit: '50mb'}));
app.use(express.urlencoded({limit: '50mb'}));

How does that translate to Gatsby?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

As of now, there is no way to solve this currently within Gatsby's local development environment. It uses the express.js default request size limit and there is no way to change it. However, this limit can be changed in a production environment and there is a request in to make this limit editable.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!