【发布时间】:2018-06-08 09:28:41
【问题描述】:
For a {node} when i am using "GET" for details this is the result
"field_attachment_file": {
"und": [
{
"fid": "73",
"filename": "Screenshot from 2018-06-08 12-54-20.png",
"uri": "public://Screenshot from 2018-06-08 12-54-20_2.png",
"filemime": "image/png",
"status": "1",
"type": "undefined",
},
]
}
上面的“fid”是我通过表单上传时添加的一些内容,但是 当我通过 json 数据上传时,我只是将“fid”增加到 “74” 当我在邮递员中通过json插入同一节点时
"field_attachment_file": {
"und": [
{
"fid": "74",
"uid": "1",
"filename": "Screenshot from 2018-06-08 12-54-20.png",
"uri": "http://webiste/api/v1/file/66",
"filemime": "image/png",
"status": "1",
"type": "undefined"
}
]
}
我想设置“fid”为单个nid上传多张图片
【问题讨论】: