feat: google drive picker integration
Users can select files from Google Drive, using Google Picker. The Google Drive icon is shown in the document upload dialog itself.
User has to authenticate when importing from drive.
Once authenticated, Google Drive Picker appears
On selecting a file we get the file id which is then used to download and upload to the Document Upload component itself using Google Drive API
Google Drive API Docs: https://developers.google.com/drive/api/guides/manage-downloads Google Drive Picker Docs: https://developers.google.com/drive/picker/guides/overview
Key Points
- Need to enable Drive API in Google Cloud project
- NEXT_PUBLIC_GOOGLE_APP_ID, NEXT_PUBLIC_GOOGLE_API_KEY will be required
- Need to rename GOOGLE_CLIENT_ID env variable to NEXT_PUBLIC_GOOGLE_CLIENT_ID, to be used for building Picker on the client side
@yashsharma999 is attempting to deploy a commit to the mftsio Team on Vercel.
A member of the Team first needs to authorize it.
@yashsharma999 That looks incredible 😍
Let me review and merge it in
/award 750
Awarding yashsharma999: 750 points 🕹️ Well done! Check out your new contribution on oss.gg/yashsharma999
Hey @mfts, can you review #600 before this one. I'll update this PR accordingly, both have similar changes but in #600 I added multiple file upload support as well.