cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right 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 does not upload image file to dropbox, only opens the image in new tab.

Saver does not upload image file to dropbox, only opens the image in new tab.

dwWithCat
Explorer | Level 3

Trying to use Saver on Instagram files. If I use the API like this:

 

 

 

fetch("/api/dropboxupload", {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        body: JSON.stringify({
          url: YOUR_FILE_URL,
          filename: YOUR_FILE_NAME,
          accessToken: accessToken.DropboxToken,
        }),
      })

 

 

 

I am successful. If I uninstall Dropbox from my node app and use Saver like this:

 

 

 

      <a
        href={YOUR_FILE_URL}
        data-filename={YOUR_FILE_NAME}
        className="dropbox-saver dropbox-dropin-btn dropbox-dropin-default"
      >
        Save to Dropbox2
      </a>

 

 

 

All that happens is that the image opens in a new tab in the browser.

 

Popups are allowed in both Safari and Chrome for dropbox.com.

 

 

 

12 Replies 12

dwWithCat
Explorer | Level 3

exhibit page the images in the grid on this page have buttons to save them to Dropbox. They do not work for me - they only open a new tab and display the image there. 

Здравко
Legendary | Level 20

Aaahh... @dwWithCat, On the platform you're trying static links cannot be used! 🤷

Try use dynamic button creation with the same content.

 

At the time Dropbox script loads, it expect all links are already loaded and starts immediately enumerate them and so. In your case at that time there is nothing loaded yet. That's where your issue is coming from.

Hope it's a bit more clear now.

Greg-DB
Dropbox Staff

@dwWithCat Здравко is correct; for a situation like that, you'll need to instead follow "Programmatically creating Saver buttons" or "Triggering the Saver from JavaScript".

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Здравко Legendary | Level 20
  • User avatar
    dwWithCat Explorer | Level 3
What do Dropbox user levels mean?