title: send array of images with AFNetworkin ios
body: <p>I have an example, where I send image and parameters to server. But I need to send NSArray of images.How can I do this?</p>
  
  <pre><code> NSData *imageToUpload = UIImageJPEGRepresentation(uploadedImgView.image, 1.0);//(uploadedImgView.image);
  if (imageToUpload)
  {
  NSDictionary *parameters = [NSDictionary dictionaryWithObjectsAndKeys:keyParameter, @"keyName", nil];
  
  AFHTTPClient *client= [AFHTTPClient clientWithBaseURL:[NSURL URLWithString:@"http://------"]];
  
  NSMutableURLRequest *request = [client multipartFormRequestWithMethod:@"POST" path:@"API name as you have" parameters:parameters constructingBodyWithBlock: ^(id &lt;AFMultipartFormData&gt;formData) {
      [formData appendPartWithFileData: imageToUpload name:@"image" fileName:@"temp.jpeg" mimeType:@"image/jpeg"];
  }];
  
  AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request];
  
  [operation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject)
   {
       NSDictionary *jsons = [NSJSONSerialization JSONObjectWithData:responseObject options:kNilOptions error:nil];
       //NSLog(@"response: %@",jsons);
  
   }
                                   failure:^(AFHTTPRequestOperation *operation, NSError *error)
   {
       if([operation.response statusCode] == 403)
       {
           //NSLog(@"Upload Failed");
           return;
       }
       //NSLog(@"error: %@", [operation error]);
  
   }];
  
  [operation start];
  }
  </code></pre>
  
  <p>Help me, please!</p>