We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Doug H.2
11 years agoNew member | Level 1
How do I restrict document types using the iOS 8 Document Picker?
I'm using the iOS 8 Document Picker in my iOS app.
UIDocumentMenuViewController
I pass in an array of supported filetypes via the initializer:
-[UIDocumentMenuViewController initWithDocumentTypes:inMode:]
All the other document pickers filter out unspecified document types and only show the ones specified by the Document Types parameter. The following pickers have been tested and work according to the API documentation:
iCloud & Google Drive
However, the Dropbox picker shows all files no matter what supported types I specify.
- Is there a way to filter document types with this picker?
- If this is a bug, is there an ETA on when this might be fixed?
Thanks.
Doug Hill
doug.hill@chartcube.com
http://chartcube.com/
8 Replies
Replies have been turned off for this discussion
- Greg-DB11 years ago
Dropbox Community Moderator
Apologies for the delay. I'm looking into this and will follow up once I have some more information.
- Brendan D.11 years agoExplorer | Level 4
I also have this problem. I need to show the user ONLY .zip files and I'm getting all files instead. It's like the document types being sent to the UIDocumentMenuViewController aren't being passed along to the UIDocumentPickerViewController after you select a service.
An update would be great to solve this problem.
- Greg-DB11 years ago
Dropbox Community Moderator
Quick update, we've confirmed this is a bug in the app. I don't have a timeline for a fix right now though.
- Brendan D.11 years agoExplorer | Level 4
Thanks for the confirmation. So when the app gets updated then this will just work for my customers? In the mean time I've put in a file type check that I do after the user has downloaded the file to tell them if it's the right file type or not. Not very elegant, but it works.
Further to this, is it possible to restrict the Dropbox folder that's initially displayed via the UIDocumentPickerViewController? Like say if I want to show the contents of a subfolder instead of the root folder.
- Greg-DB11 years ago
Dropbox Community Moderator
I believe once an updated version of the Dropbox app with a fix for this issue is released, this will work as expected without any update required from the calling side.
Also, I don't think it's possible to specify the folder to display, as I don't see a way to specify this in UIDocumentMenuViewController itself.
- Andy G.211 years agoNew member | Level 1
Thanks for working on this - I'm also getting this issue. I look forward to a fix!
- Xiang C.11 years agoNew member | Level 1
come on, 4 months later, still no fix?
- Greg-DB11 years ago
Dropbox Community Moderator
Hi all, thanks for your patience and apologies for the lack of updates on this thread. I just checked on this and I believe this should be fixed in the next version of the iOS app.
About 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!