Uploading data from google drive

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, but it returned an error: “The uploaded file contains invalid HTML content”. Any advice?
Thanks!

1 Like

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

1 Like

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) - 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. :sweat_smile:

2 Likes