Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Raivis K.'s avatar
Raivis K.
New member | Level 1
10 years ago

How to upload files on my web sever from a dropbox shared link

Hi,
The title says it all! If Dropbox users share some folder with a link, how can I download its contents to my web server?
Regards

3 Replies

Replies have been turned off for this discussion
  • Raivis K.'s avatar
    Raivis K.
    New member | Level 1
    10 years ago

    Thank you Dave for so quick answer.

    A followup question. I am looking at this php example (http://bgallz.org/scripts/upload-multiple-files-url/index.php) and it looks like it needs a direct url to files. I did some googling but I was not able to find an example how I could download all the files from the dropbox link. Maybe my keywords are wrong, cold you please guide me in the right direction?

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

    The modification Dave suggested will cause Dropbox shared links to return the file content itself (instead of a preview page), but note that for your code to work with that it will need to follow redirects. You can find the full information here:

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

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!