The content-type headers: {‘ ‘:’ multipart/form – data ‘}
An error was reported when the back end received using Eggjs
nodejs.Error: Multipart: Boundary not found
Reason for the error: The Multipart did not find the Boundary
The upload file is a POST request form in multipart/form-data format
Content-type: The multipart/form-data did not follow the boundary
To sum up, the request header was set several times, overwriting the original form enctype= ‘multipart/form-data’
and finally finding the mutlipart/form-data in XHR. SetRequestHeader that overwriting the enctype setting in the form
To sum up: There is no need to set content-type: Mutipart /form-data repeatedly or it may overwrite the original and cause unexpected errors.
The Right way:
The front end
The back-end
The browser
https://blog.csdn.net/dongzhiliwansui/article/details/87896418
Read More:
- About content type ‘multipart / form data…’ not support
- Springcloud Feign Upload MultipartFile Error: Current req is not a multipart request Content type not supported
- Uncaught TypeError: Failed to execute ‘removeChild’ on ‘Node’: parameter 1 is not of type ‘Node’.
- VUEJS Failed to execute ‘removeChild’ on ‘Node’: The node to be removed is not a child of
- [Solved] This dependency was not found: * core-js/modules/es.error.cause.js in ./node_modules/@babel
- Uncaught TypeError: Failed to execute ‘appendChild’ on ‘Node’: parameter 1 is not of type ‘Node How to Fix
- Error: EPERM: operation not permitted, mkdir ‘D:\nodejs\node_modules\npm\node_cache\_npx‘
- Flutter solves the problem of incorrect use of parent datawidget and boundary constraint
- xxx.multipart.MaxUploadSizeExceededException: Maximum upload size of 52428800 exceeded;
- IntelliJ idea error: package not found or symbol not found
- After node.js is installed, use the instruction node version in vscode to show that it is not an external or internal instruction. The solution is as follows:
- IOFileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly
- Analysis of the causes of errors in G + + compilation “was not declared in this scope”“
- How to Fix Pandoc wasn’t found.pdflatex not found on PATH
- Module build failed: Error: ENOENT: no such file or directory, scandir,‘node_modules\node-sass\vend’
- [solved] – bash: rabbitmq plugins: command not found or RA bbitmqctl:command not found
- “Error! Reference source not found.” “error! The source of the problem was not found
- “Error! Reference source not found.” “error! Reference source not found solution to problem for
- [Solved] gitbook: node_modules\npm\node_modules\graceful-fs\polyfills.js:287
- Error: ‘default’ is not exported by node_ modules/qs/lib/ index.js