In my rails app, I need to store my static assets (JS, CSS, images and downloads) on a storage service like S3, but I can not use S3 at the moment so I have searched and found google drive to be a good service.
Consider that in my app user can upload products and other user and pay then download the products.
You can use google drive through the google API.
We reserve a login through our apps account to act as the system and then share the requisite folders with that account.
That way you can then upload, download and pick up the files through the drive API using its account, without having to log in as different accounts each time.
I used the google_drive gem rather than the google one due to the hideousness of the security implementation.
Worth noting that the google drive gem now uses the google security implementation (since google shut off access by its previous method). You then have two options: a) Use a single account as described above. b) Set up service account access.
Either should give you what you need.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With