cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Need to test for Dropbox file share url

Need to test for Dropbox file share url

Joel
New member | Level 1

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 2

Greg-DB
Dropbox Staff

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
New member | Level 1

Perfect, Gregory. I appreciate you!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Joel New member | Level 1
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?