Sending (nested) json object with file using Postman

前端 未结 2 1963
Happy的楠姐
Happy的楠姐 2021-01-12 03:36

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

相关标签:
2条回答
  • 2021-01-12 04:11

    It didn't worked for me like that. For me only worked this way:

    property[nested_field1]
    property[nested_field2]
    

    or arrays with objects:

    array[0][nested_field1]
    array[0][nested_field2]
    array[1][nested_field1]
    array[1][nested_field2]
    
    0 讨论(0)
  • 2021-01-12 04:17

    Try setting values like below and choose file to upload.

    enter image description here

    0 讨论(0)
提交回复
热议问题