lagalleta
lagalleta

Reputation: 33

Google Picker API not showing more than 50 documents

I have been using the Google Picker API to select files from Drive for some quite time. However, it turns out that for folders with more than 50 elements, it shows only the first 50.

I was wondering if there is a configuration parameter to set this limit higher or call a next function to paginate results. I have looked through their documentation and could not find any reference to such things.

This is my code:

function createPicker() {

        if (pickerApiLoaded && oauthToken) {
            var view = new google.picker.DocsView().setIncludeFolders(true);

            var picker = new google.picker.PickerBuilder()
                .enableFeature(google.picker.Feature.NAV_HIDDEN)
                .enableFeature(google.picker.Feature.MULTISELECT_ENABLED)
                .enableFeature(google.picker.Feature.SUPPORT_TEAM_DRIVES)
                .setAppId(appId)
                .setOAuthToken(oauthToken)
                .addView(view)
                .setDeveloperKey(developerKey)
                .setCallback(pickerCallback)
                .build();

            picker.setVisible(true);
        }
}

Upvotes: 1

Views: 372

Answers (1)

Iamblichus
Iamblichus

Reputation: 19339

Picker is limited to 50 files or folders, but you can use the search box to look for files that are not listed.

This was recently reported on Issue Tracker:

Upvotes: 1

Related Questions