Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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.
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.
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.
@dwWithCat Здравко is correct; for a situation like that, you'll need to instead follow "Programmatically creating Saver buttons" or "Triggering the Saver from JavaScript".
Hi there!
If you need more help you can view your support options (expected response time for a 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!