A project written in Vue and nodejs requires image upload, but report error:
PayloadTooLargeError: request entity too large at readStream
Solution: add Middleware
const bodyParser = require('body-parser');
router.use(bodyParser.urlencoded({extended: false, limit: '10mb'}));
The default is 100kb, which can be replaced by a large number. The unit can be MB, etc
Read More:
- How to Solve Nginx 413 Error (request entity too large)
- .Net Core 5.0 Upload File limit via Swagger Api report error: error: request entity too large [Three Methods]
- [Solved] ES Query SIZE too large Error: ENTITY CONTENT IS TOO LONG [105539255] FOR THE CONFIGURED BUFFER LIMIT [104857600]
- Grafana Error: 414 Request-URI Too Large [How to Solve]
- [How to Solve] java.lang.IllegalArgumentException: Request header is too large
- [Solved] Browser Access Error: Request Header or Cookie too large
- [Solved] Nginx Error: 400 Request Header Or Cookie Too Large
- [Solved] Font End Image Display Error: net::ERR_CONNECTION_RESET 431 (Request Header Fields Too Large)
- [Solved] ELK Log System Error: “statusCode“:429,“error“:“Too Many Requests“,“message“ Data too large
- Error in plot.new() : figure margins too large
- [Solved] sqoop Error: jSQLException in nextKeyValue Caused by: ORA-24920:column size too large for client
- [Solved] zabbix Error: Cannot perform request: error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small
- [Solved] nodejs express Error: MulterError: Unexpected field
- How to Fix Node SASS Error in Vue + webpack project after nodejs upgrade
- EGG Error: nodejs.Error: Invalid filename [How to Solve]
- [How to Solve] Nodejs: interface error CORS error
- [Solved] GBase 8a MPP Database sftp Loading Large File Error
- How to Solve Nodejs error: cannot find module ‘. /application’
- Current request is not a multipart request [How to Solve]
- json-server Error: EPERM: operation not permitted, mkdir ‘C:\Progra m Files\nodejs\node_