Under "Credentials", add this exact URL as Authorized Redirect URI:
Under "OAuth consent screen", add your domain to Authorized domains
Enable "Google Drive API" in the API Library
Note: This application requires proper configuration in Google Cloud Console.
You must add the current page URL as an Authorized Redirect URI and your domain as an Authorized Domain.
Your files will be uploaded to your Google Drive root folder.