dropbox

Save image to dropbox with data from canvas

拜拜、爱过 提交于 2019-12-02 07:54:39
I'm trying to write canvas data as an image (png) to my dropbox. I manage to get the data from canvas and to save a file to dropbox, but the file is not an image file it seams. According to the documentation the image data should be converted to a arrayBuffer. That I'm doing using a function found here on Stackoverflow but something doesn't seem to work. Does anyone know what I'm doing wrong? function _str2ab(str) { var buf = new ArrayBuffer(str.length*2); // 2 bytes for each char var bufView = new Uint16Array(buf); for (var i=0, strLen=str.length; i<strLen; i++) { bufView[i] = str.charCodeAt

Prompt user to save on download from Dropbox

我的梦境 提交于 2019-12-02 07:11:01
I want to have a link to download a file from Dropbox that prompts the user instead of displaying the file in the browser. This probably requires setting a content-disposition header to 'attachment'. I'm currently using the dropbox media URL as described here: https://www.dropbox.com/developers/reference/api#media It seems my alternative might be to create a proxy, but I'd obviously like to avoid that. Is there a way to get this behavior from a direct Dropbox link? Found the answer myself. As documented here: https://www.dropbox.com/help/201 just add dl=1 to the URL. 来源: https://stackoverflow

Build directory tree from dropbox API

放肆的年华 提交于 2019-12-02 04:54:11
问题 What I'd like to do is to build a tree from the dropbox API, for a given path, with share links for each path, using the python bindings. My proposed structure looks something like this: [ { 'path': '/a', 'is_dir': True, 'contents': [ { 'path': '/a/b', 'is_dir': True, 'contents': [etc] }, { 'path': '/a/readme.txt', 'is_dir': False, 'share_link': 'http://etc' } ] }, etc. ] I've got something that mostly works using metadata() but it's hideously slow as it needs to make an API call per

How to do Dropbox Like Login Button?

∥☆過路亽.° 提交于 2019-12-02 04:40:58
I'm trying to do Dropbox like login button. There was a thread dropbox login popup method in jQuery? but I couldn't do something on this. I want it to be opened when I press the login button same as dropbox.com This is an example code. Now it works on hover. But I want on click. I tried focus but couldn't succeed. <div id="login"> <a href="#">Login</a> <div> Login Form Lorem Ipsum blablbalbabababa lbablaabalbalba </div> </div> And div#login { position: relative; float: right; height: 20px; padding: 5px; } div#login:focus { background: rgba(0,0,0,.2); } div#login div { position: absolute; top

Cross-origin image load from cross-enabled site is denied

时间秒杀一切 提交于 2019-12-02 04:29:07
I'm trying to use CORS enabled image which is located on cors-enabled site: dropbox.com. I've got an error: cross-origin image load denied by CORS policy. How to fix it? <html> <body> <img id="output" src="#"/> <script> var img = new Image(); img.crossOrigin = "anonymous"; var canvas = document.createElement("canvas"); img.onload = function () { canvas.width = img.width; canvas.height = img.width; var ctx = canvas.getContext("2d"); ctx.drawImage(img, 0, 0); } img.src = "https://www.dropbox.com/s/54an0126onoxezj/stone1.png"; var output = document.getElementById("output"); output.src = canvas

How to display Dropbox files in a listview in android?

风流意气都作罢 提交于 2019-12-02 03:56:42
I've been browsing answers on here for a while and have employed most of the answers in my code but it still doesn't seem to work. I just want to display a listview of the content in a dropbox account and also give the user an option to download a file/folder. My MainActivity used to crash right after opening it, surrounding my onPostExecute content with a try/catch statement handling NullPointerException solved the crashing. But the app still fails to display the contents in Dropbox. At the most basic stage with just a MainActivity and a DLFiles (AsyncTask) class, how do I make this work? I

Get Metadata from Dropbox Link Without Auth

倖福魔咒の 提交于 2019-12-02 03:51:37
问题 I want to check for a version changed/get metadata of a text-file with a shared link on dropbox. I will not be using dropbox api as it makes users use their own accounts. I want them to link to my account and I cannot do that manually since I might change my password later. so: no auth token, just get metadata from shared link of dropbox so that I can check for version changes and if the version has changed download the contents of the new file. also: I'm open to other suggestions to make

java.lang.NoClassDefFoundError: com.dropbox.sync.android.DbxAccountManager

◇◆丶佛笑我妖孽 提交于 2019-12-02 03:25:52
问题 Please this will be not DUPLICATE question Don't know but I have already put .jar in libs folder and also done following process And also I have checked this I'm getting a java.lang.classnotfoundexception: com.mysql.jdbc.Driver I have done several projects but in first time I am getting with this dropbox sample Project Lotcat is 10-14 13:01:00.580: W/dalvikvm(2902): threadid=1: thread exiting with uncaught exception (group=0x430d5140) 10-14 13:01:00.580: E/AndroidRuntime(2902): FATAL

Build directory tree from dropbox API

こ雲淡風輕ζ 提交于 2019-12-02 02:18:51
What I'd like to do is to build a tree from the dropbox API, for a given path, with share links for each path, using the python bindings. My proposed structure looks something like this: [ { 'path': '/a', 'is_dir': True, 'contents': [ { 'path': '/a/b', 'is_dir': True, 'contents': [etc] }, { 'path': '/a/readme.txt', 'is_dir': False, 'share_link': 'http://etc' } ] }, etc. ] I've got something that mostly works using metadata() but it's hideously slow as it needs to make an API call per directory traversed. What I'd like to use instead is delta() , which will get me every file in one request,

dropbox jsonp file

纵然是瞬间 提交于 2019-12-02 00:52:05
问题 I'm trying to download some data using pure javascript/html from cross-domain, dropbox to be specific. <html> <head> </head> <body> <div id = 'twitterFeed'></div> <script> function myCallback(dataWeGotViaJsonp){ var text = ''; var len = dataWeGotViaJsonp.length; for(var i=0;i<len;i++){ twitterEntry = dataWeGotViaJsonp[i]; text += '<p><img src = "' + twitterEntry.user.profile_image_url_https +'"/>' + twitterEntry['text'] + '</p>' } document.getElementById('twitterFeed').innerHTML = text; } <