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

tomatosmoothie's avatar
tomatosmoothie
Explorer | Level 3
7 years ago

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.

 

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    The Dropbox Saver doesn't support blob URLs, but I'll pass this along as a feature request.
    • tomatosmoothie's avatar
      tomatosmoothie
      Explorer | 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-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff
        I'll make a note to follow up on this thread if/when this is implemented.