Set a maximum file size when user select files with UIDocumentPickerViewController

Is it possible automatically grey out files that are too big when user select files using the UIDocumentPickerViewController?

Answered by Engineer in 799797022

Hi,

It is not possible to grey out items in a UIDocumentPickerViewController but you can use UIDocumentPickerDelegate and its didPickDocumentsAt callback to determine if you want to load file(s).

You are also welcome to file an Enhancement Request to see API explicitly added for this.

Rico WWDR - DTS - Software Engineer

Accepted Answer

Hi,

It is not possible to grey out items in a UIDocumentPickerViewController but you can use UIDocumentPickerDelegate and its didPickDocumentsAt callback to determine if you want to load file(s).

You are also welcome to file an Enhancement Request to see API explicitly added for this.

Rico WWDR - DTS - Software Engineer

Set a maximum file size when user select files with UIDocumentPickerViewController
 
 
Q