HI ,sorry for english, Im learning about upload a file on server to dropbox .
[code]
<?php
require_once "dropbox-sdk/Dropbox/autoload.php";
use \Dropbox as dbx;
$accessToken='My_access_token ';
$dbxClient = new dbx\Client($accessToken, "MyApp/1.0");
$f = fopen("prova.txt", "rb");
$result = $dbxClient->uploadFile("/cambio_nome.txt", dbx\WriteMode::add(), $f);
fclose($f);
print_r($result);
[/code]
First question :
The response is an array , how can i know i the response is success ?
Second question :
Can i upload file directly on dropbox without upload on my server ?
Third question :
Can i control if a folder exist in my app and create it if not exist than insert file in this folder