title: Upload more than one image onto server from iPhone using ASIHTTPRequest
body: <p>I am having trouble uploading more than one image to server. I am using following code for uploading:</p>
  
  <pre><code>-(void)upload {
   NSString *path=[NSString stringWithFormat:@"%@.php",webserviceURL];
   ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:[NSURL URLWithString:path]];
   [request addPostValue:@"306" forKey:@"id"];
  
   for (int i= 0; i&lt;[imageArray count]; i++) {
      NSData *imgData = UIImageJPEGRepresentation([imageArray objectAtIndex:i],1.0);
      NSDate *date....
  
       .....
  
      NSLog(@"dateString");//for getting different file name..
  
      [request addData:imgData withFileName:[NSString stringWithFormat:@"%@.jpg",dateString] 
      andContentType:@"image/jpeg" forKey:@"image"];
    }
  
   [request setDelegate:self]; 
   [request startAsynchronous];
  }
  </code></pre>
  
  <p>With this code I am able to upload only one image. How can I upload multiple images using the same key?</p>