This is a migrated thread and some comments may be shown as answers.

Dropbox Telerik Plugin

1 Answer 161 Views
Show your code
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Benjamin
Top achievements
Rank 1
Benjamin asked on 11 Aug 2015, 10:19 AM

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!

 


 

1 Answer, 1 is accepted

Sort by
0
Dimitar Kerezov
Telerik team
answered on 14 Aug 2015, 08:45 AM
Hello Benjamin,

We are having trouble reproducing the behavior you are experiencing. This said, could you please share your project, or a sample that clearly reproduces the issue with us in a private support ticket? If you are using the AppBuilder In-Browser or Windows clients it will be enough to just share the name of the faulty project and we will get it from the cloud. If you are using the AppBuilder Visual Studio Extension or Command Line Interface however, we will need you to attach an archived copy of the project in a support ticket. Thank you for the help in advance. I am looking forward to your reply.

Regards,
Dimitar Kerezov
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
Show your code
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Dimitar Kerezov
Telerik team
Share this question
or