Forum Discussion

5 Replies

  • Андрей Г.2's avatar
    Андрей Г.2
    Explorer | Level 4
    6 years ago

    no reason for that, the images are uploaded 5 minutes after the user has added them

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

    Thanks for the additional information. In that case, it's likely due to a restriction that can be set on Dropbox Business teams that prevents links from being accessed outside of the team.

     

    By default, these links are accessible without authentication, but Dropbox Business team admins can optionally enforce additional access controls on links for their users in general, which also apply to the links as returned by the Chooser. You can find more information on this restriction here:

     

    https://www.dropbox.com/help/504

     

    You can detect the failure to access the file content via these links using the status code they return. (I.e., 200 would indicate success, and 4xx, in this case 403, which indicate failure.)

     

    Unfortunately, we don't have a good solution right now for using the Chooser from accounts that are part of Dropbox for Business teams where the admin has enabled restrictions on shared links like this, but I'll send this along to the team to look into how to potentially improve this.

     

    That being the case, one alternative right now is to use the HTTP API instead, where the /files/download call isn't subject to the same restrictions as the authorized access token allows you direct access to the user's account:

     

    https://www.dropbox.com/developers/documentation/http/documentation#files-download

     

    That would be substantially more work to implement though.

  • Андрей Г.2's avatar
    Андрей Г.2
    Explorer | Level 4
    6 years ago

    if I use link type = "preview" and delete "? dl = 0" from the generated link then such link will be active always? do I need to add the parameter raw = 1?

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

    No, the Business team restriction will still apply in that case.

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!