Google drive API + OAuth 2.0 + Wordpress + Elementor Site w/ ACF

Does anyone have experience setting up a project on cloud console with Google Drive API? I need some clarifications on some of the fields for the oauth 2.0 registration.
17 Replies
ἔρως
ἔρως2mo ago
what are you trying to do? whats the project you want to achieve?
clevermissfox
clevermissfox2mo ago
essentially need another directory as a sibling of the built in Media Library in WP. I am running out of room on the server which is why I need to find other storage options. For my nonprofit client (budget limitations as in there is no budget) with an existing wordpress site with elementor. The media files need to integrate with elementor dynamic data and ACF custom fields. The client has 100tb of Workspace storage so there's plenty of Google drive storage. And all the files I need in the media library already exist on the Google drive and I'm downloading from drive and uploading to the server. Would be nice to cut out the middle man and just select directly from the Google drive or at least be able to set up and send copies to the dedicated Google drive folder. I've been researching all weekend and haven't found any free existing plugins , there's a couple options out of the price range that can help guide me but I'm stuck at just creating the oauth 2.0 credentials on Google cloud console to authenticate, recieve access and refresh Tokens etc. It doesn't let me use api keys with the Google Drive API it has to be oauth 2.0 because the data is so sensitive even though it's internal Then there's the Google library I've installed in the new plugin folder and haven't found what I'm supposed to use it for. I'm all over the Google drive docs and it seems out of date or at least I'm getting conflicting information between cloud console drive docs
ἔρως
ἔρως2mo ago
google drive is a terrible solution for that how much storage does the server have?
clevermissfox
clevermissfox2mo ago
9.7 and I'm at 9.3 - most images are optimized , there's still a batch from a few posts I had to get up quickly that aren't yet but shouldn't make much of a difference. What free storage solution would you recommend within these parameters that's scalable ?
ἔρως
ἔρως2mo ago
9.3gb is a lot of stuff do you have any videos?
clevermissfox
clevermissfox2mo ago
Two Most of that 9.3gb is Images for all their slideshows and then also nearly 2gb from a backup that I didn’t realize was in the all in one backup and migrate Backups folder so that helps Buys me a little time at least
ἔρως
ἔρως2mo ago
move those to youtube do you have any png images?
clevermissfox
clevermissfox2mo ago
Just a couple at this point that haven’t been optimized to webp yet. Actually I have one video , the other one is already hosted on YouTube. My big storage issue is the dense amount of images; I have more custom post types to add with their own files. What storage offload solution do you recommend if google drive isn’t the right solution?
ἔρως
ἔρως2mo ago
i don't recommend any because they all suck but you can check out about an s3 bucket
clevermissfox
clevermissfox2mo ago
What makes it a better solution than drive ?
ἔρως
ἔρως2mo ago
the fact that it is made for this google drive is just dropbox, but made by google also, i would assume that it would be against their terms to hotlink into files in the google drive
clevermissfox
clevermissfox2mo ago
What does hotlink mean ? What does it offer that makes it better than using drive api though ? Is it similar to creating a storage bucket with firestore ?
ἔρως
ἔρως2mo ago
it means to take the link from somewhere (for example, a public image in google drive or in your website) and use it directly on my website, while pointing to yours something like having a website on example.com and i use an image from google.com i have no idea. i just know it is a solution, and with a plugin it works with wordpress im not sure if a firestore storage bucket works
clevermissfox
clevermissfox2mo ago
Do you have a plugin you would recommend ? But just comparably is a firestore storage bucket comparable to how an s3 bucket works ? I'm not familiar with what s3 is so just trying to get an idea of what I can compare it to
ἔρως
ἔρως2mo ago
all are way too expensive for what they do personally, ive used just the s3 at work. i've never used the firestore storage bucket but both seem to do the same thing i found this: https://github.com/humanmade/S3-Uploads i don't know if it works or not, and how it works, but it is the only free one i've found so far there's this one: https://deliciousbrains.com/wp-offload-media/ but honestly, this one is way too expensive for what it does the free one is basically useless, and the paid one is way too much and even then, you're limited to how many images you can upload to aws and this one: https://optimole.com/pricing/ never used it, but it's also limited to 40000 visitors a month on the website, which is a scam (in my opinion)
clevermissfox
clevermissfox2mo ago
Yeah I came across this offload one too, and found most wprdpress plugons that do anything with storage fall under the category of being way too expensive and if they have a free tier it's useless. Was just asking about firestore bc I've used it before and have a better sense of what it does whereas S3 and AWS are just words without meaning to me. Looks like the comparable Google product to AWS is Google Cloud Storage which Firebase Storage is built on top of so that gives me a vague idea of how these storage buckets work.
I'll look into the s3 uploads by human made . Thank you so much for sharing your thoughts and looking into some options. After all this I may end up just paying to upgrade host server storage for this year and telling them they'll need to build it into the budget for next year to give me some time to figure out this whole storage bucket thing.
ἔρως
ἔρως2mo ago
an s3 bucket should do the same as a firestore storage bucket i dont know of any plugin that supports the firestore stuff but yeah, look into that plugin, it seems interesting but you gotta put some work
Want results from more Discord servers?
Add your server