简体   繁体   中英

Let user load some content on a web page on Dropbox with the click of a `Save to Dropbox` button

I'd like to enhance some web pages of my site by giving the user the ability to automatically load some content (for example an image) on his/her Dropbox by just the click of a Save to Dropbox button.

Just with the simple logic available from Facebook, gPlus, Pinterest.

Is it possibile?

I explored the documentation but couldn't find and indication.

To let the user save in his/her Dropbox some files hostes on your web site you need the Saver

As the documentation states it is required to create a Dropbox app and obtain a data-app-key .

The web page has to load the Dropbox dropins JavaScript API.

Finally adding a "Save to Dropbox" button Saver button just requires inserting a link:

<a href="https://www.example.com/the-file-to-upload/a-default-filename" class="dropbox-saver"></a>

The Saver can also be triggered via JavaScript API allowing, for example, to design a custom button.

Detailed reference is here https://www.dropbox.com/developers/saver

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM