问题
I am using a variation of the following cors-script to drag and drop a file to Google Drive: https://github.com/googledrive/cors-upload-sample. Here is a live example of it: http://googledrive.github.io/cors-upload-sample/.
However, I would like to pre-authenticate the person who visits the page so that they are always uploading into my Drive account and they do not need to sign in. In other words, either hard-code my account credentials or authenticate whenever a user loads the page to get the oauth token (or whatever else is needed).
How would this be done?
来源:https://stackoverflow.com/questions/48142257/uploading-to-drive-via-browser