NSArray * _image =@[];
///////////
//////將多張圖片一次性上傳到后臺(tái)旁瘫,后臺(tái)將數(shù)據(jù)一對(duì)應(yīng)Array格式取出
for (int i=0; i<_imageArr.count; i++) {
UIImage * image =_imageArr[i];
NSData *data = UIImageJPEGRepresentation(image, 0.9);
NSString *name =[NSString stringWithFormat:@"image_ios_%d.png",i];
NSString *formKey =[NSString stringWithFormat:@"image%d",i];
NSString *type = @"image/jpeg";
[formData appendPartWithFileData:data name:formKey fileName:name mimeType:type];
}