cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
If you’ve changed your email address, now's the perfect time to update it on your Dropbox account and we’re here to help! Learn more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

saver

saver

bspindia
Helpful | Level 7

is it possible

programatically click save directly to path using saver without clicking save button

4 Replies 4

Greg-DB
Dropbox Staff

No, there isn't a way to fully automate the Dropbox Saver, but if you want to perform save operations like that programmatically, you can use the /2/files/save_url API endpoint instead.

 

That's a link to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible. Those have corresponding native methods for the HTTPS endpoints.

bspindia
Helpful | Level 7

pop up blocking,

bspindia
Helpful | Level 7
failed to load request error on clicking save in dropbox popup window
i tried to save objectURL
please assist
code
 
$("#fileInput").change(function(){
   let file = this.files[0];
   let image = new Image();
   image.src = webkitURL.createObjectURL(file);
   image.onload = function(){
      let cvs = document.createElement("canvas");
      cvs.width = image.naturalWidth;cvs.height = image.naturalHeight;
      cvs.getContext('2d').drawImage(image,0,0,);
      cvs.toBlob(function(blob){
         let dBimg = new Image();dBimg.src = webkitURL.createObjectURL(blob);
         dBimg.onload = function(){
            Dropbox.save(dBimg.src,'2.webp',options);
         }
      },'image/webp',0.8)
   }
})

Greg-DB
Dropbox Staff

The Dropbox Saver unfortunately does not officially support data/blob/object URIs like that, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    bspindia Helpful | Level 7
What do Dropbox user levels mean?