. Advertisement .
..3..
. Advertisement .
..4..
Good day, everyone. I’m a new module learner. While attempting to set up the request module yesterday, I saw the following error: “current request is not a multipart request.” Here’s the detailed program I used and the error I got:
.MultipartException: Current request is not a multipart request
I’ve looked over a lot of different docs, but I’m still stumped. If you know, please respond on my behalf. Thank you very much.
The cause: I have studied about yours problem, I noticed issues, which are as follows: If you’re sending a multipart request using Postman, don’t specify a custom Content-Type in the header. As a result, the Header tab in Postman should be blank. The form-data boundary will be determined by Postman. Select form-data and choose a file type in Postman’s Body tab.
The Solution: I have four possible solutions: 1. Select form-data and choose a file type in Postman’s Body tab. “Missing Start Boundary” is a server error that Java reports when parsing form data. The output from POSTMan “Preview” is shown below. The reported boundary in the headers does not appear to match the actual boundary used.
POSTMan recommends the following CURL command:
Here’s a working CURL code:
2. The issue appears to be that the request to the server is not a multi-part request. Essentially, you must change your client-side form.
3.I was having a similar problem with Postman for multipart. I corrected it by performing these steps:
Content-Type
in theHeaders
section.Body
tab ofPostman
you should selectform-data
and selectfile type
.4.Please add the following to application.properties:
You’ll also need an element in your HTML form:
enctype="multipart/form-data"
.Good luck!!!