Google Picker API DocsUploadView setIncludeFolders无法正常工作 [英] Google Picker API DocsUploadView setIncludeFolders not working

查看:100
本文介绍了Google Picker API DocsUploadView setIncludeFolders无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下内容:

        var uploadView = new google.picker.DocsUploadView().setIncludeFolders(true);

        var picker = new google.picker.PickerBuilder().
            addView(uploadView).
            setOAuthToken(oauthToken).
            setDeveloperKey(googleDeveloperKey).
            setCallback(uploadPickerCallback).
            build();

        picker.setVisible(true);

在此过程中,它没有要求目的地的位置,它只是上传到根目录,并在文件上传完成后关闭对话框.

In no place during the process does it ask for the destination, it just uploads to the root and closes the dialog once the file is done uploading.

推荐答案

此问题是由Picker API的一个长期存在的错误引起的.有关更多信息,请参见 https://groups.google.com/论坛/#!topic/google-picker-api/xaHcET7JYLw .

This problem is caused by a long-standing bug with the Picker API. For more information, see https://groups.google.com/forum/#!topic/google-picker-api/xaHcET7JYLw.

解决方法是启用多选,如 https中的文档中所述://developers.google.com/picker/docs/reference#Feature .

The work-around is to enable multi-select, as described in the docs at https://developers.google.com/picker/docs/reference#Feature.

picker.enableFeature(google.picker.Feature.MULTISELECT_ENABLED);

这篇关于Google Picker API DocsUploadView setIncludeFolders无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆