Forum Discussion

khatech's avatar
khatech
Explorer | Level 3
4 years ago

get photo link to bank

Hello, I need help, how can I get the link of a photo uploaded to store in the database?

9 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    khatech Also, since you posted this in the API section, if you want to create a shared link programmatically, you would use /2/sharing/create_shared_link_with_settings. To retrieve existing shared links, use /2/sharing/list_shared_links.

     

    By the way, those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible. Those have corresponding native methods for the HTTPS endpoints.

  • khatech's avatar
    khatech
    Explorer | Level 3
    4 years ago

    I understood,
    my goal is to have a link that can view the image, this link will serve to attach image to a whatsapp message

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    In that case, note that by default, shared links point to a HTML preview page for the file, but if you need direct file data access, you can modify the links as shown here.

  • khatech's avatar
    khatech
    Explorer | Level 3
    4 years ago

    this is exactly what i need, a link to an html with the image, however, it's not working for me, i already had a good look at the documentation, but for some reason, the shared link doesn't work

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    khatech Can you elaborate on what you mean when you say "the shared link doesn't work"? For instance, please share:

     

    • the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)
    • the full text of any error or unexpected output, a screenshot of the unexpected result/behavior, etc.

     

  • khatech's avatar
    khatech
    Explorer | Level 3
    4 years ago

    the problem with the link is that when clicking it asks you to log in, so I need a link that when pasting it in the browser it makes the image preview.

    Thank you for your help

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    khatech It sounds like you might be referring to shared link permissions. Check out the help center for more information on configuring shared link permissions.

     

    Otherwise, please share the rest of the requested details if you need technical support.

  • khatech's avatar
    khatech
    Explorer | Level 3
    4 years ago

    Hi, got it, thanks for the feedback.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

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, Facebook or Instagram.

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!