Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
tomatosmoothie
8 years agoExplorer | Level 3
Javascript Saver fails with URL.createObjectURL(blob)
var optionssave = {
success: function() {
console.log("Yay! File saved to dropbox");
},
cancel: function() {
console.log("Whoops file not saved!");
},
error: function(errorMessage) {
console.log(errorMessage);
}
};
var blob = new Blob([setxml], {
type: "text/plain;charset=utf-8"
});
var bloburlsav = URL.createObjectURL(blob);
Dropbox.save(bloburlsav, filename, optionssave);Dropbox file chooser is working fine.
The dropbox file saver reaches to the point of displaying the file name and the save button, on clicking the save button, it displays, "Failed to load request" (screenshot attached)
You can visit the link live: https://tomatosmoothie.github.io/recipes/ and try it if you have the time.
Thanks.
8 Replies
- Greg-DB8 years ago
Dropbox Community Moderator
The Dropbox Saver doesn't support blob URLs, but I'll pass this along as a feature request. - tomatosmoothie8 years agoExplorer | Level 3
Thanks for your reply. I guess, I'll just hide the button for now.
Is there any specific place/page/channel I can follow to see if/when this feature is maybe added?
- Greg-DB8 years ago
Dropbox Community Moderator
I'll make a note to follow up on this thread if/when this is implemented. - tomatosmoothie8 years agoExplorer | Level 3
Thank you so much, appreciate it.
- Jake97 years agoNew member | Level 2
I got lost in the same blob trap, but found a solution...
csvFile = build up a string of the whole file...
const dataURI = 'data:text/plain,' + encodeURIComponent(csvFile);
Dropbox.save(dataURI, "filename.csv", options); - Jake97 years agoNew member | Level 2
the "ampsersand colon semicolon" is just a colon.
- quartertone6 years agoNew member | Level 2
Any progress on this feature?
- Greg-DB6 years ago
Dropbox Community Moderator
quartertone No, unfortunately I don't have any news on this request.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If 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, Facebook or Instagram.
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!