title: Progress bar while uploading a file to dropbox
body: <pre><code>import dropbox
  client = dropbox.client.DropboxClient('&lt;token&gt;')
  f = open('/ssd-scratch/abhishekb/try/1.mat', 'rb')
  response = client.put_file('/data/1.mat', f)
  </code></pre>
  
  <p>I want to upload a big file to dropbox. How can I check the progress? <a href="https://www.dropbox.com/developers-v1/core/docs/python#ChunkedUploader">[Docs]</a></p>
  
  <p>EDIT:
  The uploader offeset is same below somehow. What am I doing wrong</p>
  
  <pre><code>import os,pdb,dropbox
  size=1194304
  client = dropbox.client.DropboxClient(token)
  path='D:/bci_code/datasets/1.mat'
  
  tot_size = os.path.getsize(path)
  bigFile = open(path, 'rb')
  
  uploader = client.get_chunked_uploader(bigFile, size)
  print "uploading: ", tot_size
  while uploader.offset &lt; tot_size:
      try:
          upload = uploader.upload_chunked()
          print uploader.offset
      except rest.ErrorResponse, e:
          print("something went wrong")
  </code></pre>
  
  <p>EDIT 2:</p>
  
  <pre><code>size=1194304
  tot_size = os.path.getsize(path)
  bigFile = open(path, 'rb')
  
  uploader = client.get_chunked_uploader(bigFile, tot_size)
  print "uploading: ", tot_size
  while uploader.offset &lt; tot_size:
      try:
          upload = uploader.upload_chunked(chunk_size=size)
          print uploader.offset
      except rest.ErrorResponse, e:
          print("something went wrong")
  </code></pre>