With Postman, I can attach files in requests with form data, I can also send a nested JSON object in raw format, but how can I do this: send nested structure data with a file, for example:
"data": { "normal_fields": { "field1": "value1", "field2": "value2" }, "image_file": <file> }
Try setting the values below and select the file to upload.
It did not work for me like that. For me, it only worked like this:
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]
Source: https://habr.com/ru/post/1589014/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1589009/how-to-send-only-the-last-value-received-from-stream-analytics-to-powerbi&usg=ALkJrhiiEaYLFO-NYJYrbOw5Nmea7sMEJwHow to insert into parent and child tables immediately in bookshelf.js - node.jspython pandas: remove df column if condition is pythonКак использовать RandomRangedNumberCustomization в Autofixture, чтобы гарантировать, что параметры находятся в определенном диапазоне? - c#Play Framework: how to implement proper error handling - scalaImplement union of all queries with inner join - sqlAngular Google Maps custom Icon only works when updating marker - javascriptUsing SimpleSAMLphp in a multi-tenant application - phpHttps Nginx NodeJS SocketIO and CORS Error - javascriptIn my time-time value, I want to use a regular expression to strip out the slash and colon with time and replace it with an underscore - pythonAll Articles