We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
berwickredan
7 years agoNew member | Level 2
Restrict Accessing / Selecting Specific File Types
I'm about to integrate the API into a new project and I'd love to be able to restrict the user from selecting file types that we don't support. I've been looking through the docs but am not seeing it (or just missing it I hope).
We currently support .docx, .pdf, .rtf, .txt and it would be awesome if we can restrict selecting any files that do not have one of those types.
Is this supported in the API? If not, I supposed we'd need to do some validation and feedback on client-side on our end.
Thanks!
Kane
You didn't mention what platform you're using, but if you can use just the Dropbox web Chooser, you can filter files by type using the 'extensions' option.
Otherwise, if you are using the Dropbox API itself, I'm afraid this isn't offered. The Dropbox API doesn't have a way to restrict the app's access to specific types, but I'll pass this along as a feature request. That being the case, you'd have to implement the filtering client-side.
- Greg-DBDropbox Staff
You didn't mention what platform you're using, but if you can use just the Dropbox web Chooser, you can filter files by type using the 'extensions' option.
Otherwise, if you are using the Dropbox API itself, I'm afraid this isn't offered. The Dropbox API doesn't have a way to restrict the app's access to specific types, but I'll pass this along as a feature request. That being the case, you'd have to implement the filtering client-side.
- berwickredanNew member | Level 2
Ah the Chooser! This should work perfectly. Thanks for the quick response!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 44 minutes agoIf 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!