We’re aware of an issue causing slower load times on the Dropbox Community forum. It should be resolved soon. Thanks for your patience! 

Forum Discussion

studio69's avatar
studio69
Helpful | Level 5
9 years ago

Get downloadable links from a folder

Hello,

 

 

I would like to use Dropbox so that people could host files into a folder.

For now, they have to share manually each link and put this link in the csv file in order to import files into a website. The import process is done using a plugin called WP All Import that allows files to be downloaded from external URL.

 

Could I use a shared folder that is publicly accessible with the link. Let's say the link is something like: https://www.dropbox.com/sh/0fihswd8yfyczw9/AABt2G9yyP4HDF_SAN-JKG7ca?dl=0

Than create downloadable file link with filename?

 

I heard of /create_shared_link_with_settings endpoint but I can't find any tutorial how to use it.

 

Could you indicate me the way to do this please?

 

Any help would be really appreciated.

7 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago
    I'm not sure I fully follow your question. Are the users uploading to their own Dropbox accounts? Do you need individual links for each uploaded file, or just each folder?

    In any case, the /2/sharing/create_shared_link_with_settings endpoint is the right way to create a shared link for any specific file or folder:

    https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings

    There's an example of calling it via curl in the documentation there.
  • studio69's avatar
    studio69
    Helpful | Level 5
    9 years ago

    Actually, they uploaded files from their accounts in a shared folder.

    They need individual links for each file so that import process could work. The URL needs to  start with http or https.

    Ideally, I would like a link with the same prefix (the shared folder link) and the filename (i.e: https://www.dropbox.com/sh/AAbbCCEeFF123/myfilename.jpg) so that they don't need to manually generate a shared link for each file.

  • Gonzo345's avatar
    Gonzo345
    Helpful | Level 5
    9 years ago

    The Shared Links have their own "format" so you need to get the metadatada, parse the name and then perform the download and apply that parsed name and file extension. At least that's how I do that using .NET on a fully "apished" (lol) application.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago
    You can't programmatically get a shared link for a file just using the shared link for a parent folder in API v2, so you'll need to call /2/sharing/create_shared_link_with_settings for each desired file/folder.
  • studio69's avatar
    studio69
    Helpful | Level 5
    9 years ago

    I'm sorry I really don't unier stand how to use endpoint. Where to load the script? How to use it? Is there a tutorial somewhere?

    Also I was thinking about sync dropbox files into a webserver so that I could use the absolute Path of the web Server to get files URL. 

  • studio69's avatar
    studio69
    Helpful | Level 5
    9 years ago

    Ooops...I really don't know anything about java or python...

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!