使用Volley Android上载包含Json数据的多个文件

使用Volley Android上载包含Json数据的多个文件,android,android-volley,Android,Android Volley,嗨,我必须上传多个文件,其中一个Json参数包含多个数据我使用凌空截击(volley)使用Json参数进行了单文件上传。我试了很多次,但是运气不好,所以终于在这里发布了。供您参考,该请求将类似于 { "name": "Thomas", "email": "thomas@xyz.com", "dob": "13/05/1975", "fileArray": [{ "profileImage": "thomas.png", "Comments": "My first birthday

嗨,我必须上传多个文件,其中一个Json参数包含多个数据我使用凌空截击(volley)使用Json参数进行了单文件上传。我试了很多次,但是运气不好,所以终于在这里发布了。供您参考,该请求将类似于

{
 "name": "Thomas",
 "email": "thomas@xyz.com",
 "dob": "13/05/1975",
 "fileArray": [{
  "profileImage": "thomas.png",
  "Comments": "My first birthday"
 }]
}
提前谢谢。

也许吧

"fileArray": [{
  "profileImage": "thomas1.png",
  "Comments": "My first birthday"
 },
{
  "profileImage": "thomas2.png",
  "Comments": "My second birthday"
 },
{
  "profileImage": "thomas3.png",
  "Comments": "My third birthday"
 }]
这就是你要找的吗?

也许吧

"fileArray": [{
  "profileImage": "thomas1.png",
  "Comments": "My first birthday"
 },
{
  "profileImage": "thomas2.png",
  "Comments": "My second birthday"
 },
{
  "profileImage": "thomas3.png",
  "Comments": "My third birthday"
 }]

您要找的是什么?

您的问题是什么?上传多个文件。文件应该像“fileArray”那样添加:[{“profileImage”:“thomas.png”,“Comments”:“我的第一个生日”}]“上载多个文件”,这是一个怎样的问题?你的问题是什么?上载多个文件。应该像“fileArray”那样添加文件:[{“profileImage”:“thomas.png”,“Comments”:“我的第一个生日”}]“上载多个文件”,这是一个怎样的问题?是的,Christine,与此完全相同,还有一些其他参数,如名称“:“thomas”,“email”:”thomas@xyz.com,“dob”:“1975年5月13日”“,是的,克里斯汀,与此完全相同,还有其他一些参数,如名称:”“托马斯”,“电子邮件”:”thomas@xyz.com,“dob”:“1975年5月13日”,