Want to know more about Dash? Check out how Amy uses Dropbox and Dash to make her day easier here!
Forum Discussion
Derag
2 years agoExplorer | Level 3
Image link on without sharing
I am making a webapp that lets user store, edit and view text files on their Dropbox account (from app folder).
I would want to embedded images into that text, with images that are also saved on user's Dropbox.
Can I do it without create_shared_link_with_settings? Is there a way to get a link that only owner of that image will see and still embedded it into the <img></img>?
The Dropbox API /2/sharing/create_shared_link_with_settings endpoint (or corresponding native method in an SDK) does offer an 'audience' setting of 'no_one', which does not grant additional access, so that only the account(s) that already otherwise have access to the file (such as the owner) would be able to access it.
Also, Dropbox does offer the ability to modify shared links for different behaviors, such as direct file data access, e.g., by using the raw=1 parameter, as documented here. Note that shared links are subject to bandwidth limits.
I just tried this out myself though and unfortunately it looks like this particular combination of settings doesn't work. I'll raise this with the team to see if this is something we can support.
14 Replies
- Greg-DB2 years ago
Dropbox Community Moderator
The Dropbox API /2/sharing/create_shared_link_with_settings endpoint (or corresponding native method in an SDK) does offer an 'audience' setting of 'no_one', which does not grant additional access, so that only the account(s) that already otherwise have access to the file (such as the owner) would be able to access it.
Also, Dropbox does offer the ability to modify shared links for different behaviors, such as direct file data access, e.g., by using the raw=1 parameter, as documented here. Note that shared links are subject to bandwidth limits.
I just tried this out myself though and unfortunately it looks like this particular combination of settings doesn't work. I'll raise this with the team to see if this is something we can support.
- Derag2 years agoExplorer | Level 3
I ended up using access Public and raw=1
Thanks for raising this further! - Derag2 years agoExplorer | Level 3
For some reason that stopped working. Now image isn't loaded. It tries to download it even with raw=1
Same happens for files that worked before
- Здравко2 years agoLegendary | Level 20
Hi Derag,
That's because some strange change of all new links behavior gets up. Doesn't matter of link parameters (is there something link "dl=1" or "raw=1"), all links provide HTML content that may redirect further to the file. This contradicts to the Dropbox links documentation. 🤷
Let's hope this is some mistake that'll be fixed. .. and let's hope this is NOT some new "feature" that first rolled out and documentation... doesn't matter. Let's hope...
Good luck... to all of us.
- Greg-DB2 years ago
Dropbox Community Moderator
Derag Thanks for the report! We'll look into it.
- GeorgeNotaTechExpert2 years agoExplorer | Level 4
Hi Greg
Could you please let me know once this problem has been resolved, or the likely timeframe for solving the issue?
- Greg-DB2 years ago
Dropbox Community Moderator
GeorgeNotaTechExpert I can't offer a timeline, but I'll follow up here once I have any news on this.
- grunzz2 years agoNew member | Level 2
Hi Greg,
has their been any information?
I have noticed, by changing the "www" in the URL to "dl" it works. But also I have read that these are link transformations from the early days and DP doesnt officially list it in the help center anymore but they are beeing supported FOR NOW.
I have thousands of DP links on my Wordpress website. Do I have to change every single link to "dl"? And if so, how long will this be a working solution?
Best Wishes
- Greg-DB2 years ago
Dropbox Community Moderator
grunzz Using "dl." may work, but it is not really recommended; using "www." is preferred. I don't have any information to share on how long "dl." may continue working. We're currently investigating the "www." issue and I'll follow up here once I have news on that.
- Greg-DB2 years ago
Dropbox Community Moderator
This should be working again now. Please let us know if you're still seeing any issues. Thanks!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,017 PostsLatest Activity: 5 hours ago
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 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!