If you share a file to google drive and change the upload path in the dialog by adding a non existent folder then the file will be uploaded but renamed to that non existent folder you typed. What is expected is that the whole typed path (including sub folders) should be created within google drive and finally upload the file to the correct path. Or give user the choice to select path from google drive already created folders.