title: Getting available space in dropbox
body: <p>I have integrated dropbox sdk in IPhone app. I'm uploading files to dropbox. how can I find out how much space is available through code so that I dont upload files when their is no available space</p>
  
  <pre><code>    DBQuota *quota=[[DBQuota alloc]init];
      long spaceConsumed=quota.totalConsumedBytes;
  
      long totalSpace=quota.totalBytes;
  
      NSLog(@"spaceConsumed %ld",spaceConsumed);
      NSLog(@"total space %ld",totalSpace);
  </code></pre>
  
  <p>here I'm getting output 0.</p>
  
  <p>Thanks</p>