'how to ajax fomdata fileupload object in list
I want file upload how to controller
let images = [];
let fileObj = {};
fileObj.mfile = $('[name="repImageFile"]')[0].files[0];
fileObj.title = 'test1';
fileObj.description = 'siofjesoifjai';
images.push(fileObj);
fileObj.mfile = $('[name="repImageFile"]')[1].files[0];
fileObj.title = 'test2';
fileObj.description = 'sfafefseafseafa';
images.push(fileObj);
formData.append('objImages', images);
my error : Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'multipart/form-data;boundary
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
