title: upload multiple images to ftp server
body: <p>I am currently working IOS application which can be used to upload multiple image to ftp server. I am using GoldRaccoon class file. I have selected 5 images, but it only uploads the last image. </p>
  
  <pre><code> - (void)zcImagePickerController:(ZCImagePickerController *)imagePickerController didFinishPickingMediaWithInfo:(NSArray *)info {
  [self dismissPickerView];
  
  NSString *fullPath;
   for (NSDictionary *imageDic in info) {
  
      UIImageView *imageView = [[UIImageView alloc] initWithImage:[imageDic objectForKey:UIImagePickerControllerOriginalImage]];
      imageView.contentMode = UIViewContentModeScaleAspectFit;
      [arrImageView addObject:imageView];
  
      UIImage *image1 = [imageDic objectForKey:@"UIImagePickerControllerOriginalImage"];
      NSData * imageData1 = UIImageJPEGRepresentation(image1,100); //convert image into .png format.
      NSFileManager * fileManager = [NSFileManager defaultManager];//create instance of NSFileManager
      NSArray * paths1 = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); //create an array and store result of our search for the documents directory in it
      NSString * documentsDirectory = [paths1 objectAtIndex:0]; //create NSString object, that holds our exact path to the documents directory
  
      fullPath = [documentsDirectory stringByAppendingPathComponent:[NSString stringWithFormat:@"%@.jpg",image1]]; //add our image to the path
  
    //  NSString *str=[NSString stringWithFormat:@"%@.jpg",image1];
  
      [fileManager createFileAtPath:fullPath contents:imageData1 attributes:nil]; //finally save the image
  
      [arrvalue addObject:fullPath];
  
      NSURL *imageURL = [imageDic valueForKey:UIImagePickerControllerReferenceURL];
      ALAssetsLibraryAssetForURLResultBlock resultblock =^(ALAsset *myasset)
      {
          ALAssetRepresentation *representation = [myasset defaultRepresentation];
          NSString *fileName = [representation filename];
          // Send WebService
        //  [arrName addObject:fileName];
          [self sendImage:fileName :fullPath];
      };
  
      ALAssetsLibrary* assetslibrary = [[ALAssetsLibrary alloc] init] ;
      [assetslibrary assetForURL:imageURL resultBlock:resultblock failureBlock:nil];
  
   }
  }
  </code></pre>