You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Derag's avatar
Derag
Explorer | Level 3
7 months ago

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.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    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's avatar
      Derag
      Explorer | Level 3

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

      • Derag's avatar
        Derag
        Explorer | 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

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 12 months ago
325 Following

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!