# I want Uppy to upload to Google Drive some question

**URL:** <https://community.transloadit.com/t/i-want-uppy-to-upload-to-google-drive-some-question/15595>\
**Category:** Uppy\
**Created:** [February 5, 2021, 8:42pm UTC](https://community.transloadit.com/t/i-want-uppy-to-upload-to-google-drive-some-question/15595 "2021-02-05T20:42:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![erikswed](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/erikswed/32/332_2.png) [@erikswed](https://community.transloadit.com/u/erikswed)\
**Post date:** [February 5, 2021, 8:42pm UTC](https://community.transloadit.com/t/i-want-uppy-to-upload-to-google-drive-some-question/15595/1 "2021-02-05T20:42:10Z")

</div>

I’m a beginner and try to understand as how to use Uppy to select files and to send them to Google Drive account that I own.

What is the best way to do that and what is the problem with this?  
I read something about Drive cant do XHR but what if I only use Uppy to selected the files and then write my own code so user can download to local and then I send the files to Google Drive?  
I’m a beginner at this  
Maybe someone has made a plugin for this now?  
I’m playing around in this [Sandbox](https://codesandbox.io/s/expanding-cards-with-extra-7by4n?file=/src/components/AnimatedList.jsx)  
Any tips would be nice thanks

---

<div class="post-metadata">

**Author:** ![ajkachnic](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/ajkachnic/32/260_2.png) [@ajkachnic](https://community.transloadit.com/u/ajkachnic)\
**Post date:** [February 6, 2021, 10:46pm UTC](https://community.transloadit.com/t/i-want-uppy-to-upload-to-google-drive-some-question/15595/2 "2021-02-06T22:46:32Z")

</div>

I can’t provide exact code, but you should be able to upload files [as described here](https://developers.google.com/drive/api/v2/reference/files/insert). As far as I’m aware, Companion doesn’t support this feature, so you would need to handle OAuth yourself. The [XHRUpload plugin](https://uppy.io/docs/xhr-upload/) might work in this circumstance, but you also might need something more specialized for this task. Sorry that I can’t provide too much of a description on this solution, but the docs should make it sort-of straightforward.

If you’d like to upload to a specific Google account’s Google Drive, instead of to the user’s Google Drive, you could setup an API endpoint that takes a file, and calls the Google API client to upload the file. Unfortunately Transloadit doesn’t support this feature, or else this use-case would be even easier. As this is once again a pretty general idea, I can’t provide any example code.

I hope this helps. Let me know if you have any questions.  
- Andrew
