Hello Friends,
I am looking for a solution where I can upload multiple MultipartFile along with input JSON body. I knew there are many related things available but none of the thing were I find my solution. which provoke me to ask a question to community.
My requirement is something likewise,
I have developed(In fact developing & am in last stage) open source library where schools/colleges/universities would willingly upload study materials for students based upon subject wise. Along with material User(authenticated) must has to provide few text info like, title, description, remarks.
so My expected entity is something likewise,
@Entity
class Material {
private MultipartFile[] content;
private String title;
private String description;
private String remarks;
}
I would like to use spring MVC feature something likewise where am getting failed & need your help here,
public String uploadMaterial(@RequestBody Material material) {
... business logic ...
return "successfully material saved.";
}
Any help will be really Appreciate!!