Seeking a modern solution for uploading files to Google Drive

Hey everyone! I’m trying to find a way to upload different types of files to Google Drive. I know there are some formats that work easily, like Word docs and PDFs. But I want to upload other stuff too.

I tried an old Perl thing, but it didn’t work. It just gave me an error. I’m hoping to find something that works on Linux and is pretty easy to use. Maybe there’s a tool or library that makes it simple?

I saw some people talking about using the API directly, but that seems complicated. Is there anything out there that makes it easier? Like a wrapper or something?

Any ideas would be great. Thanks!

hey, have u tried using PyDrive? its pretty cool for google drive stuff. i use it on my linux box and its easy peasy. just pip install pydrive and ur good to go. it handles all kinds of files too. way simpler than messing with the api directly

I’ve had success using the ‘rclone’ tool for uploading various file types to Google Drive on Linux. It’s a command-line program that’s relatively straightforward to set up and use. You’ll need to configure it with your Google account first, but once that’s done, you can sync folders or upload individual files easily.

For those who prefer Python, the ‘google-auth’ and ‘google-auth-oauthlib’ libraries, along with the Google Drive API client library, provide a good foundation. While there’s a bit of a learning curve, these tools offer more flexibility than pre-built solutions.

If you’re comfortable with Go, the official Google Drive SDK for Go is another option. It’s well-documented and can handle a wide range of file types.

Remember to check the quota limits on your Google Drive account, especially if you’re planning to upload large files or numerous small ones.

I’ve been using a tool called ‘gdrive’ for a while now, and it’s been a game-changer for me. It’s a command-line utility that’s super straightforward to use on Linux. You just need to authenticate it once, and then you can upload pretty much any file type to your Google Drive with simple commands.

What I really like about gdrive is that it supports batch uploads and even lets you create and manage folders directly from the command line. It’s way more user-friendly than dealing with the API yourself, but still gives you a lot of control.

One tip: if you’re uploading large files, gdrive has a resume feature that’s been a lifesaver when my connection’s been spotty. Just something to keep in mind if you’re dealing with big uploads.

Have you looked into any command-line tools like this? They can be really powerful once you get the hang of them.