当前位置: 动力学知识库 > 问答 > 编程问答 >

Uploading multiple files with Json data using Volley Android

问题描述:

Hi I have to upload multiple files with one Json parameter having multiple data. I have worked on single file upload with Json Params using volley. I tried this lot of time but no luck so finally posting here. For your reference the request will be similar to

{

"name": "Thomas",

"email": "[email protected]",

"dob": "13/05/1975",

"fileArray": [{

"profileImage": "thomas.png",

"Comments": "My first birthday"

}]

}

Thanks in advance.

网友答案:

Maybe

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

is what you are looking for?

分享给朋友:
您可能感兴趣的文章:
随机阅读: