Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

Joel's avatar
Joel
New member | Level 1
11 years ago

Need to test for Dropbox file share url

I'm writing an email add-in program that needs to flag emails that contain dropbox file share links. I've searched here at the Community. I did find there is no way right now to detect invalid urls.

I am looking for something close to that post, but my question is not the same because assumptions can be made about the url when testing it. An url that was valid until the given file was renamed/deleted/moved at one time is still a Dropbox file share url, it just may not work (and dead links do not matter).

What text can I use to parse string as a test for a Dropbox file share url?

2 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    11 years ago

    It sounds like you may be looking for a regex pattern that can be used to identify Dropbox links. I don't believe we have a single such pattern pre-built, but this help article lists official domains and URL patterns:

    https://www.dropbox.com/help/217#domains

  • Joel's avatar
    Joel
    New member | Level 1
    11 years ago

    Perfect, Gregory. I appreciate you!

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!