Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending (nested) json object with file using Postman

With Postman, I can attach files in requests with form-data, I can also send nested JSON object in raw format, but how can I do both: sending nested-structure data with file, e.g:

"data": {
    "normal_fields": {
        "field1": "value1",
        "field2": "value2"
    },
    "image_file": <file>
}
like image 418
Son Huy TRAN Avatar asked May 20 '15 13:05

Son Huy TRAN


1 Answers

Try setting values like below and choose file to upload.

enter image description here

like image 175
Akhilrajtr Avatar answered Sep 21 '22 08:09

Akhilrajtr