Send File and Json Data both at same time

Hi there,
I tried to send a file with a dictionary as shown in the following picture. Unfortunately, I can’t.


Would you please help me?

BR,

I’m facing the same problem.

What errors are you receiving?

What have you tried so far?

Do you have details on the API specification which would usually tell you if this is even possible for the API.

A good specification will include request examples.

It is not an error.
When I post a data with a raw json, a can send an array directly on the body.
When I’m trying to post the same body, but with files, I simply can’t, it need to have a “name” for the property.

image

Is probably some configuration, because the front app can post it like it must be

If you haven’t got the details of the API specification with example requests that you can copy, then you can use the Postman interceptor feature to capture the request that is made from the front end. This should then guide you on how to craft the request in Postman.

Announcing the Postman Interceptor Extension for all Browsers | Postman Blog