Currently I am using google.picker.ViewId.FOLDERS view in Google drive picker. This however, shows all the folders(including deep level folders) in my drive.
How to achieve a view in which only the top level folders are displayed at first? This would be similar to Dropbox chooser's file view.
For reference. This works fine now:
let docsView = new google.picker.DocsView(google.picker.ViewId.FOLDERS)
.setParent('root')
.setSelectFolderEnabled(true);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With