How to set the body (key: upload , value: Map<String, MultipartFile> )

In java I create the Pojo class and the variable name is “uploads” and the type is Map<String, MultipartFile>. When I try to test this using Postman, I bit struggle to pass the input by FormData. Is there any way to Post the Map type data in Body.

1 Like

Hey @telecoms-explorer-77 :waving_hand:

Welcome to the Postman Community! :postman:

Can you share more details about how you have structured that request in Postman? A visual example would also help here.

1 Like

public class pojo {
public integer Id;
public String name,
public String email;
public Map<String, MultipartFile> uploads;
}

// This is my sample pojo class, I want to make a Formdata request in postman.

I was thinking more of an example that you used in Postman, as you mentioned you tried it on there.

I’m not going to pretend and say I know java because I really don’t but I’ve seen formData inputs being handled like this in the past: