PHP : Upload fille to drop box

  1.  Download dropbox SDK Download PHP SDK
  2. Create App
  3. get access token
  4. Verify Access token
    $accessToken=”ncbckjcd54547d-d89uihnjnf-ruijnbdf7jbndb-8u8dkjnd01456456″;$dbxClient = new dbx\Client($accessToken, “PHP-Example/1.0”);
    $accountInfo = $dbxClient->getAccountInfo();
  5. Upload file Code

$f = fopen(“email3.png”, “rb”);
$result = $dbxClient->uploadFile(“/email3.png”, dbx\WriteMode::add(), $f);
fclose($f);

Continue reading