The EDocman - Google DriveV3 plugin allows Edocman to upload, store, and retrieve documents using Google Drive API v3.
The connection uses OAuth 2.0. A Joomla administrator authorizes the application to access a Google account without sharing the account password with Joomla.
Storing documents on Google Drive can reduce long-term storage usage on your web server. However, uploads still use temporary server storage, PHP memory, and execution time.
Scope of this guide: The plugin screenshot shows Joomla 5.3.1. Menu names may differ between Joomla versions. This guide applies to the
googledrivev3plugin implementation that uses thegoogledriveauthenticatecallback.
Before configuring the connection, check that your website and Google account meet the following requirements.
tmp/edupload directory inside your Joomla installation.If you use Google Workspace, your organization's administrator may need to allow the application to access Google Drive.
Recommendation: Use a Google account intended for managing your website's documents. Avoid depending on an employee's personal account that may later become unavailable.

The main configuration fields are:
| Field | Purpose | Value |
|---|---|---|
| Client ID | Identifies the application's OAuth client | Provided by Google Cloud |
| Client secret | Authenticates the client when exchanging an authorization code for tokens | Provided by Google Cloud |
| Root Path | Names the root folder managed by the plugin on Google Drive | For example, edocman |
| Status | Controls whether the plugin is enabled | Enabled |
Root Path is a folder name on Google Drive. It is not a server path, URL, or Google Drive folder ID.
The folder creation behavior is explained in section 4.
Create a Google Cloud project, enable Google Drive API, and configure the application that will connect to your website.
Open Google Cloud Console.
Edocman Drive Integration.Project name and Project ID are different values. Use values appropriate for your website; do not copy project names or IDs from old screenshots.
In the selected project:
If the API is already enabled, continue to the next step.
Important: Google Drive API must be enabled in the same project that contains the OAuth client used by the plugin.
Open Google Auth Platform and complete the initial application setup.
Depending on the Google Cloud interface, settings may appear under Branding, Audience, Data Access, and Clients, or under OAuth consent screen.
Provide the information Google requests, including:
Use your own application name, branding, and website information. Do not copy another product's name, logo, or website from example screenshots.
Choose the audience that matches your deployment:
If an External application is in Testing status, add the Google account you will use to connect Edocman to the Test users list.
The supplied plugin implementation requests these OAuth scopes:
| OAuth scope | Purpose |
|---|---|
https://www.googleapis.com/auth/drive |
Broad Drive file access for reading, creating, updating, and deleting files |
https://www.googleapis.com/auth/userinfo.email |
Access to the account's email address |
https://www.googleapis.com/auth/userinfo.profile |
Access to basic profile information |
Declare the corresponding scopes in the application's data access configuration.
Security notice: This plugin implementation requests the broad
drivescope. The Root Path setting organizes documents but does not restrict OAuth access to that folder.
The drive scope is classified by Google as a restricted scope. Verification requirements depend on the application's audience and deployment.
Do not bypass an authorization warning without first checking the application's identity and the permissions it requests.
For an External application in Testing status that requests Drive access, refresh tokens generally expire after 7 days.
For a long-running website integration, review Google's requirements for moving the application to Production and completing verification when applicable.
Moving an application to Production does not automatically mean that Google has verified it.
Edocman Website.The plugin builds its callback URL from the Joomla root URL followed by:
administrator/index.php?option=com_edocman&task=googledriveauthenticate
If Joomla is installed at the domain root, the callback is:
https://example.com/administrator/index.php?option=com_edocman&task=googledriveauthenticate
If Joomla is installed in a subdirectory named joomla, the callback is:
https://example.com/joomla/administrator/index.php?option=com_edocman&task=googledriveauthenticate
Replace the example domain and installation path with your actual website URL.
The URI registered with Google must exactly match the callback used by the plugin, including:
https.www if used.Important: Do not use a WordPress callback for Edocman. URLs containing
/wordpress/wp-admin/orwpfdAddon-clouddo not apply to this plugin.
If your website runs behind a reverse proxy or CDN, make sure Joomla detects the correct public hostname and HTTPS protocol.
The authorization flow shown in the supplied code uses a server-side callback. This flow does not show a requirement for an Authorized JavaScript origin.
If another website component requires this field, enter only the origin, for example:
https://example.com
Do not include a path such as /administrator/. Do not remove www if it is part of the hostname your website uses.
After creating the OAuth client, obtain:
Keep these values available for the Joomla configuration step.
Keep credentials private: Do not publish Client secrets or OAuth tokens in screenshots, support posts, or public repositories. If a real Client secret has been exposed, replace it in Google Cloud and update the plugin configuration.
Return to Joomla after completing the Google Cloud configuration.
Open EDocman - Google DriveV3 and:
edocman.Save before connecting. The authorization field reads credentials from the saved plugin configuration, not just from values currently entered in the form.
After the credentials have been saved, use the Google Drive connection control in the plugin's authorization area.
If the connection control does not appear:
Screenshot note: The configuration image above shows the credential fields, but not the authorization control or a successful connection status.
A successful Google consent screen alone does not confirm that document storage and retrieval work correctly.
Perform this test:
The plugin may add a unique prefix to uploaded filenames to avoid collisions. The physical filename on Google Drive can therefore differ from the original filename.
Understand how the plugin manages folders and files before using it with production documents.
The plugin manages its root folder using the Root Path name and a Google Drive folder ID stored in the Joomla database.
edocman.If Edocman's hierarchical folder structure setting is enabled, the plugin creates category-related folders.
If hierarchical folder structure is disabled, files are uploaded to the root folder.
Avoid unplanned changes: Do not change Root Path or the connected Google account after storing production documents without a migration plan. Files and folders are linked by IDs in the database; changing a name or account does not automatically migrate them.
In the supplied upload flow, the plugin:
tmp/edupload.Your server still needs:
Google Drive storage does not eliminate server resource limits. Reading an entire file into memory can cause problems with large uploads.
The supplied plugin code includes an Edocman document deletion event that calls the Google Drive API to delete the corresponding file.
Deletion warning: The API operation deletes the file rather than moving it to Google Drive's trash. Test deletion only with sample documents and maintain an independent backup of important files.
The exact user-facing behavior depends on when Edocman triggers the deletion event. Distinguish permanent deletion from moving a Joomla record to the trash, and test both behaviors before deployment.
Enabling the plugin does not, by itself, establish that it will:
Test these requirements separately before relying on them. Use an ordinary file such as a PDF for the initial connection test.
Use the following checks to narrow down connection and storage problems.
| Problem | What to check |
|---|---|
redirect_uri_mismatch |
Exact match of protocol, hostname, Joomla subdirectory, path, and query string |
invalid_client |
Correct Client ID and Client secret from the same OAuth client; saved plugin settings |
access_denied |
Test user membership, declined permissions, or Google Workspace restrictions |
| Unverified application warning | Application identity, requested scopes, deployment status, and verification requirements |
| API not enabled | Google Drive API is enabled in the OAuth client's project |
| Authorization succeeds but upload fails | Drive storage, permissions, temporary directory, PHP limits, and API errors |
| File cannot be retrieved | File existence, account access, and the validity of stored file/folder IDs |
| Connection fails after about one week | Whether an External application is still in Testing status |
These checks address common causes, but runtime failures may also require a plugin code review.
Some plugin errors are recorded in:
administrator/logs/edocman_googledrive.php
This path is relative to the Joomla installation directory.
Not every error is written to this file. Also check Joomla and PHP logs when necessary.
Before sharing logs for support, remove tokens, Client secrets, and other sensitive information.
If the plugin interface provides a disconnect control, use it to revoke the token and clear the stored authorization credentials.
You can also revoke the application's access from your Google account's connected applications settings.
After access is revoked, the old connection will no longer work. Authorize the application again before attempting further Drive operations.
Before storing production documents, confirm that: