cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

How do I restrict document types using the iOS 8 Document Picker?

New member | Level 1
New member | Level 1

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.

  1. Is there a way to filter document types with this picker?
  2. 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 8
Highlighted

Re: How do I restrict document types using the iOS 8 Document Picker?

Dropboxer
Dropboxer

Apologies for the delay. I'm looking into this and will follow up once I have some more information.

Highlighted

Re: How do I restrict document types using the iOS 8 Document Picker?

Explorer | Level 3

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.

Highlighted

Re: How do I restrict document types using the iOS 8 Document Picker?

Dropboxer
Dropboxer

Quick update, we've confirmed this is a bug in the app. I don't have a timeline for a fix right now though.

Highlighted

Re: How do I restrict document types using the iOS 8 Document Picker?

Explorer | Level 3

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.

Highlighted

Re: How do I restrict document types using the iOS 8 Document Picker?

Dropboxer
Dropboxer

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.

Highlighted

Re: How do I restrict document types using the iOS 8 Document Picker?

New member | Level 1
New member | Level 1

Thanks for working on this - I'm also getting this issue. I look forward to a fix!

Highlighted

Re: How do I restrict document types using the iOS 8 Document Picker?

New member | Level 1
New member | Level 1

come on, 4 months later, still no fix?

Highlighted

Re: How do I restrict document types using the iOS 8 Document Picker?

Dropboxer
Dropboxer

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.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?