title: Upload a file into dropbox folder
body: <p>I have tried this to upload a file from a folder in my desktop to a folder in dropbox account.</p>
  
  <p>but each time i have uploaded an empty file through this code.</p>
  
  <p>How it is possible?</p>
  
  <p>Below s my code:</p>
  
  <pre><code>     $ch = curl_init();
       $TOKEN = "asasasa";//token here
       $url = 'https://content.dropboxapi.com/2/files/upload';
       curl_setopt($ch,CURLOPT_URL,$url);
       curl_setopt($ch,CURLOPT_POST, 1);             
       curl_setopt($ch,CURLOPT_RETURNTRANSFER, true);
       $headers = array();
       $headers[] = 'Accept: application/json';
       $headers[] = 'Content-Type: multipart/form-data';
       $headers[] = 'Dropbox-API-Arg:{"path":"/home/new/ofd","mode":{".tag":"add"},"autorename":false,"mute":false}';
       $headers[] = "Authorization: Bearer ".$TOKEN;
       curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);     
       $response = curl_exec($ch);  
       $droplist  = json_decode($response,true);
  </code></pre>