You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
joost2076
8 years agoExplorer | Level 3
download blob using dropbox Saver
Hi,
I am trying to use the dropbox Saver (https://www.dropbox.com/developers/saver) to download a json blob from my desktop (ubuntu).
This leads to an error: Url "blob:http://localhost:5000/f58ddb0b-48ed-46ab-87b3-f45a1ee8a7df" uses unsupported scheme
Is it possible to download a blob using Saver ? If so, any ideas what I am doing wrong?
The code i used is as follows: with url = blob:http://localhost:5000/f58ddb0b-48ed-46ab-87b3-f45a1ee8a7df", and filename = "yourmap.json"
Thanks,
Joost
function create_dropbox_save_button(url, mapname){ var options = { success: function () { // Indicate to the user that the files have been saved. alert("Success! Files saved to your Dropbox."); }, progress: function (progress) {console.log(progress)}, cancel: function () {}, error: function (errorMessage) {console.log(errorMessage)} }; var button = Dropbox.createSaveButton(url, mapname, options); document.getElementById("dl_dropbox").appendChild(button); }
- The Dropbox Saver doesn't support blobs, local files, or data URIs unfortunately, but I'll pass this along as a feature request.
- Greg-DBDropbox StaffThe Dropbox Saver doesn't support blobs, local files, or data URIs unfortunately, but I'll pass this along as a feature request.
- blurymindNew member | Level 2
Hi, I need this too in order toimplement saving to db from https://yarnspinnertool.github.io/YarnEditor/
Is there an alternative approach to blobs? I want to write a simple string from my webapp to a dropbox folder - as a text file. Is that possible or not? If so how and why is your documentation lacking a simple example?
- Greg-DBDropbox Staff
blurymind No, the Dropbox Saver still doesn't support saving blobs, or some other local alternative. I'll add your vote to the feature request, but I can't promise if or when that might be implemented.
The Dropbox Saver only supports saving from Internet-accessible URLs. If you want to use the Saver to save a text file, you'll need to supply the data via an Internet-accessible URL.
Alternatively, you can use the Dropbox API, e.g., via the official Dropbox JavaScript SDK, to upload directly to Dropbox from the browser, but that would be more work and would require you to have the user explicitly authorize the app via the OAuth app authorization flow.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 3 days agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!