cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We just wanted to say thank you! Check out our customer appreciation video 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: 

Image link on without sharing

Image link on without sharing

Derag
Explorer | Level 3
Go to solution

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>?

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

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.

View solution in original post

14 Replies 14

Greg-DB
Dropbox Staff
Go to solution

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.

Derag
Explorer | Level 3
Go to solution

I ended up using access Public and raw=1
Thanks for raising this further!

Derag
Explorer | Level 3
Go to solution

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

Здравко
Legendary | Level 20
Go to solution

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-DB
Dropbox Staff
Go to solution

@Derag Thanks for the report! We'll look into it.

GeorgeNotaTechExpert
Explorer | Level 4
Go to solution

Hi Greg

 

Could you please let me know once this problem has been resolved, or the likely timeframe for solving the issue?

 

 

Greg-DB
Dropbox Staff
Go to solution

@GeorgeNotaTechExpert I can't offer a timeline, but I'll follow up here once I have any news on this.

grunzz
New member | Level 2
Go to solution

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-DB
Dropbox Staff
Go to solution

@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.

Need more support?
Who's talking

Top contributors to this post

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