Sending (nested) json object with file using Postman(使用 Postman 发送(嵌套)json 对象和文件)
问题描述
使用 Postman,我可以在请求中附加带有表单数据的文件,我还可以发送原始格式的嵌套 JSON 对象,但我怎样才能做到这两点:使用文件发送嵌套结构数据,例如:
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>
}
推荐答案
尝试如下设置值并选择要上传的文件.
Try setting values like below and choose file to upload.
这篇关于使用 Postman 发送(嵌套)json 对象和文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 Postman 发送(嵌套)json 对象和文件


基础教程推荐
- 即使用户允许,Gmail 也会隐藏外部电子邮件图片 2022-01-01
- npm start 错误与 create-react-app 2022-01-01
- 原生拖动事件后如何获取 mouseup 事件? 2022-01-01
- 检查 HTML5 拖放文件类型 2022-01-01
- Fabric JS绘制具有活动形状的多边形 2022-01-01
- Bootstrap 模态出现在背景下 2022-01-01
- fetch 是否支持原生多文件上传? 2022-01-01
- 在 contenteditable 中精确拖放 2022-01-01
- Bokeh Div文本对齐 2022-01-01
- 如何添加到目前为止的天数? 2022-01-01