I am creating a hybrid app with the AppBuilder.
In my app, I want to use the Dropbox plugin
I have installed the dropbox plugin via the plugin marketplace.
On dropbox, I have created a Dropbox API App with access to the whole dropbox-folder.
Thanks to this link Dropbox Plugin I succeeded to link my Telerik App with the Dropbox API App (with the right keys).
But now, I want to upload a file from my android-device (I already know the physical path of the file), but it fails :-(
I tried this code:
var content = { files : [path], folder: "MySaves" };
dropbox.save( content, function (msg) {console.log("Success: " + JSON.stringify(msg))}, function (msg) {console.log("Error: " + JSON.stringify(msg))} );
In my "path"-variable, I store the physical path of the file.
The folder "MySaves" does exist on my dropbox-account that I have linked with the dropbox API App
When I run the bold-code, I get the message: {"success":true}
But the file hasn't been uploaded on my personal dropbox-account.
Does anyone know what there is wrong?
Thanks in advance!