title: RestKit upload image parameters
body: <p>I have to configure server side for uploading image with RestKit 0.2 using a Spring.</p>
  
  <p>I use the following code for uploading:</p>
  
  <pre><code>NSMutableURLRequest *request = [[RKObjectManager sharedManager] multipartFormRequestWithObject:obj
                                                                                          method:RKRequestMethodPOST
                                                                                            path:nil
                                                                                      parameters:nil
                                                                       constructingBodyWithBlock:^(id&lt;AFMultipartFormData&gt; formData) {
  
  
      [formData appendPartWithFileData:UIImageJPEGRepresentation(obj.image, 1.0)
                                  name:@"image"
                              fileName:@"image.jpg"
                              mimeType:@"image/jpeg"];
  
  }];
  
  
  
  RKObjectRequestOperation *operation = [[RKObjectManager sharedManager] objectRequestOperationWithRequest:request
                                                                                                   success:^(RKObjectRequestOperation *operation, RKMappingResult *mappingResult) {
  
                                                                                                       NSLog(@"%@", [mappingResult firstObject]);
  
                                                                                                   } failure:^(RKObjectRequestOperation *operation, NSError *error) {
  
                                                                                                   }];
  
  [[RKObjectManager sharedManager] enqueueObjectRequestOperation:operation];
  </code></pre>
  
  <p>My WS side: </p>
  
  <pre><code>@RequestMapping(value = "findMatch", method = RequestMethod.POST)
  public void findMatch(@RequestParam(value = "image") Part image){
  
      // ...
  }
  </code></pre>
  
  <p>When i try to upload the image I get the error: <strong>The request sent by the client was syntactically incorrect.</strong></p>
  
  <p>My question is, what is the name of the image parameter?</p>
  
  <p>Thanks.</p>