Uploading Document to Google Drive Folder and to a Shared Drive


To upload a file to my Google Drive’s root, I used the following solution. It worked beautifully.

Moving forward, I’d like upload my file to a specific folder on my drive or to a shared drive. Any tips or tricks on how to do this? I’ve tried including the folder name in my file name, but I end up getting a file created at the root with a name like this: folder/test.csv. What I really want is to the file, test.csv, inside the folder called folder.