Forum Discussion

Kuroobi20's avatar
Kuroobi20
New member | Level 2
3 years ago

Create direct file link and and quota limit

Good morning, I want to implement dropbox in a development, the idea is to provide links with direct download, that is to say that it is downloaded automatically in the browser. It's possible?

What limitation does dropbox have, by requests or by GB downloaded? I really just need direct download link thanks

  • Здравко's avatar
    Здравко
    Legendary | Level 20

    Hi Kuroobi20,

    Probably you don't see the details your question, but you actually asking for 2 different things.

     

    "direct file link" - I will suppose you have shared link created by /2/sharing/create_shared_link_with_settings. Such a link ends with "?dl=0" parameter. Replacing the parameter to "?raw=1" will give your direct raw access to the file (useful for embedding content in web page for instance).

     

    "links with direct download" - Here you have 2 options. The first one is to replace the link parameter to "?dl=1", which will turn it to download link (no preview anymore). The second option is using temporary link with /2/files/get_temporary_link. Such a link is for short term use and represents downloadable content without redirection.

     

    Hope this helps.

    • Kuroobi20's avatar
      Kuroobi20
      New member | Level 2

      thanks for the answer, I have tried the link dl=0 modifying it to dl=1 and indeed it is a direct download link, my next question in this question was, what limit does dropbox have for this link? or have unlimited downloads?

      • Здравко's avatar
        Здравко
        Legendary | Level 20

        This part of your question depends on your subscription. For different plans are different limitations. If you hit that limit your links will be banned. For more info take a look here.

        Good luck.

         

        PS:


        Kuroobi20 wrote:

        ... to dl=1 and indeed it is a direct download link, ...


        Just to avoid confusion - such a link is NOT direct (it's just download link)!!! It supposed redirection (with HTTP code 302 and 'location' header)! If you need really direct links the only supported option is the temporary link (in spite other tricks are possible too).

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 5 days ago
351 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!