how to upload files to moodle so that files should actually go to google drive?
Moodle 2.9.2.+
Which files? Can you back up a little and tell us more generally what you are trying to do?
Do you mean that you want some sort of activity that enables Google Drive uploads from within Moodle? Or something else?