Probably this might be the basic question but I could not get the solution when I tried from various answered provided in stackoverflow.
Question:
I need to send a file from my angular to the server. I asked the same question in stackoverflow and it can be found here,
Using Multipart without Form in Spring MVC
Now the question is, I want to send one more object (which is not a file, probably a JSON) to the server. How should I do it?
I have tried wrapping up Multipart file and also JSON object into one and sending it but the attempt was not successful as spring slapped me with some exception. First of all, Is my approach correct? If it is not then how should I go ahead?