I have been having some issues with the google drive API and teamdrives. I can\'t for the life of me, figure out how to upload a file to team drive.
I\'m able to upload
You can refer to the documentation how you can use the file picker with team drives.
There is an available example, this one is an image selector or uploader page.
Google Picker Example