Sending nested json object with file using Postman

Viewed 1502

I figured out how to send a file next to other params using form-data. Now I need to send a file inside a nested object, specificially the file key is inside a key and then in an array. Like this:

"data": {
    "normal_field": [
        {
             "field1": "value1",
             "field2": "value2",
             "image_file": <file>
        }, (etc)
    ]
}

Based on this answer, my current setup looks like this enter image description here

I sadly get a Bad Request back, and I am also not able to figure out a way to view the raw request Postman generates, so I have to assume the keys I input are wrong. If you want a more specific scenario, I am trying to use this method.

0 Answers
Related