Varun Raju
Varun Raju

Reputation: 21

How to upload files into google drive?

I am looking to upload files into google drive via nodejs. I want to upload into the google drive of users who log in through google on my site.

Once a user logs into my website via google then I will be given a token. And I can obtain user details, read files using this token. I am unable to find if we can upload files into the user's account using this token. Is it possible ?

Its like, Mr. X logins into my site using google sign in. Then he uploads a file(ex: image and edits it). which on saving i will upload to Mr. X google drive directly.

Upvotes: 2

Views: 2720

Answers (1)

ReyAnthonyRenacia
ReyAnthonyRenacia

Reputation: 17651

Check the official google-api-nodejs-client and the Drive API Upload guide.

Upvotes: 1

Related Questions