I need to allow user to select which Google Drive folder to upload their files.
I am using this code now:
view = new google.picker.DocsView(google.picker.ViewId.FOLDERS).
setParent('root').
setSelectFolderEnabled(true)
picker = new google.picker.PickerBuilder().
addView(view).
setSelectableMimeTypes('application/vnd.google-apps.folder').
enableFeature(google.picker.Feature.NAV_HIDDEN).
setOAuthToken(token).
setDeveloperKey(key).
setAppId(appid).
setCallback(picker_callback).
build()
But there are a few problems here:
- User still see files despite that
google.picker.ViewId.FOLDERS
is used - There is no way to select root folder
Is any way to fix my problems?
Currently files are always upload to root folder, I don't want this new feature remove this possibility.