# Uploading data from google drive

**URL:** <https://help.galaxyproject.org/t/uploading-data-from-google-drive/7436>\
**Category:** usegalaxy.eu support\
**Tags:** upload, third-party-identities, upload-html\
**Created:** [February 1, 2022, 12:50pm UTC](https://help.galaxyproject.org/t/uploading-data-from-google-drive/7436 "2022-02-01T12:50:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vojtace](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/vojtace/32/3085_2.png) [@vojtace](https://help.galaxyproject.org/u/vojtace)\
**Post date:** [February 1, 2022, 12:50pm UTC](https://help.galaxyproject.org/t/uploading-data-from-google-drive/7436/1 "2022-02-01T12:50:15Z")

</div>

Hello,  
is it possible to upload files from google drive to galaxy? I tried generating direct link to the google drive file (which was public) and then using it on [usegalaxy.eu](http://usegalaxy.eu), but it returned an error: “The uploaded file contains invalid HTML content”. Any advice?  
Thanks!

---

<div class="post-metadata">

**Author:** ![gallardoalba](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/gallardoalba/32/1903_2.png) [@gallardoalba](https://help.galaxyproject.org/u/gallardoalba)\
**Post date:** [February 1, 2022, 2:13pm UTC](https://help.galaxyproject.org/t/uploading-data-from-google-drive/7436/2 "2022-02-01T14:13:49Z")

</div>

Hi @vojtace,  
yes, it is possible, but a bit tricky. First, you need to get the file ID from the sharing link:

- drive.google.moc/file/d/ **1ZaG5oZm-CUbHiej7Y3OdjoU8Z89gOsE7** /view?usp=sharing

Then you need to use the following address in Galaxy:

- drive.google.moc/uc?export=download&id= **1ZaG5oZm-CUbHiej7Y3OdjoU8Z89gOsE7**

Regards

---

<div class="post-metadata">

**Author:** ![vojtace](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/vojtace/32/3085_2.png) [@vojtace](https://help.galaxyproject.org/u/vojtace)\
**Post date:** [February 1, 2022, 4:10pm UTC](https://help.galaxyproject.org/t/uploading-data-from-google-drive/7436/3 "2022-02-01T16:10:27Z")

</div>

Hi @gallardoalba,  
thanks for the response. Unfortunately this doesn’t work for me, but I finally figured out why: the files are too large for the google drive direct download link to work. Knowing where the problem was it was easy to find out the solution: [Google Drive Direct Download Link for Large Files (2022)](https://bytesbin.com/google-drive-direct-download-link-large-files/) - it is necessary to use google API: `https://www.googleapis.com/drive/v3/files/FileID?alt=media&key=APIKey` so it is even more complicated, but it works, I finally managed to upload the data to Galaxy. 😅
