drive-api-from-js
drive-api-from-js copied to clipboard
An example app on how to upload files to Google Drive
Drive API from JS
This is a sample project that shows how one can use the Google authentication, and also how to store files in the user's Drive.
For a more detailed description, check out these 2 blog posts:
Live demo
For a live demo, see this link
To run this sample project on your computer
Just clone the repo, host the files on a web server of your choice and open index.html in a browser.
Note: The app must listen on port 8080, because that is the only whitelisted origin
To change the API project
- Register a new project at the Google Developers Console
- Create a new Client ID for a Web Application
- Add a valid origin
- Take note of the Client ID
- Enable Drive API
- At the gapi-auth-service there is a client id, change it to your project's