title: How to upload file in dropbox in iphone?
body: <p>I have made code to upload image from document directory to Sample Album of Dropbox.
  But it dosen't work as i want.</p>
  
  <p>My code:</p>
  
  <pre><code> -(NSString *)getDocumentPath{
  
  NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES);
  NSString *path = [[paths objectAtIndex:0]stringByAppendingPathComponent:@"image1.jpg"];
  NSLog(@"path:%@",path);
  return path;
  }
  
  
  -(IBAction)uplaodingPhotos:(id)sender
  {
    NSString *path = [self getDocumentPath];
      [[self restClient] uploadFile:@"splash.jpg" toPath:@"/Photos/Sample Album"
                  withParentRev:nil fromPath:path]; 
  </code></pre>
  
  <p>}</p>
  
  <p>In this code i want to add image image1 from document directory to Sample Album in Dropbox.
  But it dosen't copy image.Now what i have to do?</p>
  
  <p>Please Help.
  Thank in advance.</p>