简体   繁体   中英

gatsbyjs function file uploading error 413 entity too large

when I'm trying to make the request with a file of more than 30Mb to gatsby js function throw Axios. I get an error 413 entity too large. Can I somehow increase the request size? I tried add to Axios config this:

  maxContentLength: Infinity,
  maxBodyLength: Infinity,

but it does not help.

The request is larger than the server is willing or able to process. Compress your file to make it smaller. (ZIP, PDF,...)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM