Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

158
Vistas
Google File Picker: Fix return to root folder comes up empty

In my JS file picker implementation, I am successfully able to download files successfully, and navigate through the folder structure. However, if I return to the root folder after navigating away from it, nothing is displayed:

View implementation:

    const createView = () => {
        const google = google || window.google;
        // show all docs
        const view = new google.picker.DocsView();
        // include the ability to see & navigate folders
        view.setIncludeFolders( true );
        // constrain file types to those accepted for upload
        let mimeTypes = '';
        const acceptedTypes = [
            ...Globals.acceptedSharedDocumentFileTypes,
            ...Globals.googleFileMimeTypes,
        ];
        for ( const type of acceptedTypes ) {
            if ( acceptedTypes.indexOf( type ) < acceptedTypes.length - 1 ) {
                mimeTypes += `${ type },`;
            } else {
                mimeTypes += type;
            }
        }
        view.setMimeTypes( mimeTypes );
        // view as list instead of GRID
        view.setMode( google.picker.DocsViewMode.LIST );
        return view;
    };

Picker Implementation:

    const initFilePicker = () => {
        // open the file picker
        const google = google || window.google;
        const view = createView();
        const picker = new google.picker.PickerBuilder()
            .addView( view )
            .setOAuthToken( authObject.access_token )
            .setDeveloperKey( googleKeys.web.api_key )
            .setCallback( handlePickedFiles )
            .build();
        picker.setVisible( true );
    };

What am I missing?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda