dropbox-js

Issues downloading files using Dropbox JavaScript SDK

≯℡__Kan透↙ 提交于 2019-12-11 06:49:34
问题 I am attempting to download a file, to the Webapp itself on the client side, using the Dropbox Javascript SDK. I want to make it clear that I only wish to download a file to a folder in the web app; I understand that due to security concerns this may not actually be possible. I am following the documentation provided in: http://dropbox.github.io/dropbox-sdk-js/index.html http://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesDownload__anchor This is my controller code: $scope.testDownload

Dropbox direct upload files from browser

放肆的年华 提交于 2019-12-06 02:54:45
问题 I am trying to upload files directly to dropbox [from a browser / web application], The "uploadFile" function on the code API needs the file to be uploaded available on the server, this puts me in trouble, because I do not want any files to be uploaded to my server and from there to dropbox. $f = fopen("test.jpg", "rb"); // requires file on server $result = $dbxClient->uploadFile("test.jpg", dbx\WriteMode::add(), $f); fclose($f); Tried out this https://github.com/dropbox/dropbox-js