Not getting multi part form data from frontend to backend servlet

Hello

I have developed a custom plugin in Jira atlassian. I have a form in which there are two input text fields and one is input file type now I have developed a form using HTML and added the enctype attribute form multipart form data. I have made an Ajax call from JS to servlet.

Now on JS when I console the input data I am getting them in the console window of inspect window infact in network tab I see the correct request made and the header and payload having the data correctly.

But when I debug and see in the servlet in the request I see no parameters and in backend servlet I don’t get the parameters and thus I get null for them in servlet.

I have added all the required dependencies and annotations and attributes in the form