Allow customers upload files on product, category, cart, and checkout pages, and upload or modify files on the Thank You and My Account pages.
Setup and Installation
↑ Back to topInstallation:
↑ Back to top- Download the WooCommerce Upload File plugin and go to your .zip file
- At the WordPress admin panel, Go to the Plugins section, and click ‘Add New’ to upload and install the plugin you just downloaded from WooCommerce.
- Upload the .zip file to proceed with the installation.
- Wait until the plugin installs. After successful installation, activate the plugin and move on to configuration settings.
Configuration:
↑ Back to topAt the WooCommerce admin panel go to WooCommerce > Settings > File Uploader for configuration. Here you have three tabs which are:
- Manage Rule
- Add Rule
- Recaptcha Settings
- Additional Settings
Manage Rule:
↑ Back to topAll rules of customer upload files for WooCommerce are listed within the Manage Rule tab. The admin can modify and apply pre-set rules at any time from this section.
- Status: Use the toggle to enable or disable a rule without deleting it.
- User Roles / Product/Category: Shows the user roles and products or categories each rule applies to.

Add Rule:
↑ Back to top- Enable / Disable: Select the option to enable/ disable the rule
- Rule Name: Set the name of the rule
- Display on: Select the options on which pages you want to display the WooCommerce upload file
- Product Page
- Cart Page
- Checkout Page > After Notes
- Thank you Page
- Account Page
- Cart Page (Alongside Cart Items)
- Checkout Page (Alongside Cart Items)
- After Order Completion (Thank You/Account Page)
- Display Position: Choose where the field appears on the checkout page (for example, After billing fields).
- Main upload rules: You can configure the file upload WooCommerce rule and button. Click on the Add upload item button to create a new file upload button in the same rule and configure it likewise.

Upload item settings:
- Label: Set the custom button that you want to display on the front end
- Allowed Extension: Set the allowed file types by inserting the extension name, separated by commas
- Price: Set the price for the uploaded file
- Discount type: Enable a discount for each file upload. You can set a fixed or a percentage discount.
- Discount Price: Enter the desired discount amount.
- Description: Set a custom description that will be shown below the upload field.
- Upload File Button Text: Customize the upload file button text.
- Maximum Upload Size: Set the maximum upload size of each file. Select KB or MB, then enter the value.
- Maximum File Upload: Enter the maximum number of files allowed per upload button. Leave empty to allow one file only.
- Customer Notes: Checkbox to enable customer notes
- Customer Notes Label: Set custom notes label
- Required: Click the checkbox to make the file upload mandatory before checkout
- Allow Upload Modification: Click on the checkbox to allow customers to replace an uploaded file.
- Price per File Upload: Select to charge customers for each file they upload.
- Apply file fee to item subtotal: Include the upload fee in the line item subtotal instead of the base price.
- Background Color: Personalize the background color of the button.
- Text Color: Set the custom text color of the button
Min / Max Width (px): Set the minimum and maximum image width. Leave empty for no limit. - Min / Max Height (px): Set the minimum and maximum image height. Leave empty for no limit.
- Min / Max DPI: Set the minimum and maximum image resolution. Leave empty for no limit.
- If DPI is missing: Choose what happens when an image has no DPI metadata. The default is Allow upload.

Restrictions:
- Product/Category Restriction: Display the upload file button on specific products or categories. Upon selecting the preferred option, select the product or categories from multiselect box.
- Payment method visibility: Show the upload field only for the selected payment methods.
- Shipping method visibility: Show the upload field only for the selected shipping methods.
- User Role: Display the upload file button for specific user roles.

Visibility conditions depend on Display On:
- Checkout Page: Payment and shipping conditions apply at checkout only (not on product, cart, or Alongside Cart Items displays).
- Thank You Page, Account Page, or After Order Completion: Order status conditions apply on those pages only.
- Empty lists mean no extra restriction. Uploaded files already stored are never hidden in admin, emails, or downloads.

Recaptcha Settings:
↑ Back to top- Enable/Disable Recaptcha: Enable disable recaptcha on file upload WooCommerce.
- Recaptcha Site Key: Enter recaptcha site key.
- Recaptcha Secret Key: Enter Recaptcha Secret Key.
File Uploader ShortCode:
↑ Back to topYou will find the shortcode for the file upload button form in the notice, i.e [extendons_upload_button]. Simply place the code anywhere on your page. It primarily works with page builders.
Additional Settings:
↑ Back to top- Upload Folder Path: Define the folder path where uploaded files will be stored. The default path is wp-content/uploads.
- Secured Uploads Folder (ext_uploads): Enable this to store uploaded files in a secured ext_uploads folder, blocking any public direct access. When enabled, the secure file links option is automatically checked, and the upload folder path is overwritten, with files stored and managed by the plugin itself.
- Use Secure File Links: Enable this to serve uploaded files via signed links instead of exposing direct public file URLs. Note that for complete protection, the secured uploads folder option should be enabled, as secure links alone cannot prevent access if someone already has the direct file path.
- Enable Google Drive Uploads: Enable this to store uploaded files directly in your Google Drive instead of the local server.
- Google Drive OAuth Credentials JSON: Upload your Google OAuth credentials JSON file to authenticate and connect your Google Drive account. Use the Google Cloud redirect URI shown here (with the Copy button) in Google Cloud Console.
- Google Drive Folder Name: Enter the destination folder name in Google Drive where uploaded files will be saved. The default name is WooCommerce File Uploads.
- Enable image crop editor: Let customers crop images before uploading.
- Default aspect ratio: Set the starting crop ratio. The default is Free.
- Show “fit entire image” option: Let customers fit the whole image inside the selected crop area.
- Rebuild order file index: Click this button to rebuild the index of files attached to orders.

How to Connect Google Drive to Your Store via File Uploader for WooCommerce?
↑ Back to topThis explains how to configure Google Cloud Console for Google Drive integration, upload the credentials to the plugin, and perform the OAuth authorization flow.
Prerequisites
- A Google account with access to Google Cloud Console.
- Administrative access to your WordPress site (to install/upload credentials and perform authorization in plugin settings).
- The WooCommerce file Upload plugin is installed and active.
1. Create a Google Cloud Project
- Go to https://console.cloud.google.com/ and sign in.
- From the project drop-down (top-left), click “New Project”.
- Enter a project name (e.g., “AFU Google Drive”) and click “Create”.
- Wait until the project is created and selected.
2. Enable the Google Drive API
- From the left menu go to “APIs & Services” → “Library”.
- Search for “Google Drive API” and open it.
- Click “Enable”.
3. Configure the OAuth Consent Screen
- In the Cloud Console, go to APIs & Services → OAuth consent screen.
- Choose “External” (public) or “Internal” depending on your organization, and click “Create”.
- Fill in the App name, Support email, and Developer contact email.
- Under “Scopes” you can add the Drive scopes your plugin requires. Typical recommended scopes:
- https://www.googleapis.com/auth/drive.file (per-file access created/opened by the app)
- https://www.googleapis.com/auth/drive.metadata.readonly (optional, for metadata)
- Avoid requesting a full drive scope unless absolutely required.
- Save and continue. You do not need to publish the app for testing with your own Google account if using internal or test users (for External apps, add test users under the OAuth screen if not publishing).
4. Create OAuth 2.0 Credentials
- Go to “APIs & Services” → “Credentials”.
- Click “Create Credentials” → “OAuth client ID”.
- Select “Web application” (or the type recommended by the plugin) as Application type.
- In “Authorized redirect URLs,” add the callback/redirect URL that the plugin shows in its Google Drive settings. Important:
- Open the Upload file for WooCommerce plugin settings page → Google Drive section and copy the Redirect/Callback URL shown there.
- Paste that exact URL into the Authorized redirect URLs list in Cloud Console.
- If the plugin does not show a URL, common examples are:
- Always prefer the exact URL displayed by the plugin; otherwise, OAuth will fail with a redirect mismatch.
- Click “Create”.
- After creation, click the download icon next to the client to download the JSON credentials (client_secret_*.json). Keep this file safe.
5. Upload / Enter Credentials in the Plugin
- In WordPress, go to the File upload WooCommerce settings → Google Drive configuration.
- The plugin provides a file upload field to upload the downloaded JSON credentials.
- Upload the JSON and save settings.
6. Perform Authorization (OAuth Flow)
- After saving credentials, click the plugin button that says “Connect Google Drive” or “Authorize Google Drive”.
- A Google consent screen will open. Choose the Google account to use and click “Allow”.
- After granting permission, you should be redirected back to your site, and the plugin should show a success message or connected status.
- If the plugin shows an error about redirect URL, re-check the Authorized redirect URLs in the Cloud Console and ensure they exactly match the plugin’s callback URL (including trailing slash, query params, and http/https).
7. Token Storage & Refresh
- The plugin will store the access token and refresh token (if requested) in its settings or in the database. Refresh tokens allow the plugin to renew access without repeated user intervention.
- If you lose authorization or tokens expire, re-run the authorization step.
8. Testing Uploads
- Use the front-end upload form or the plugin’s test upload feature to send a file to Google Drive.
- Check the configured Google Drive account to confirm the file arrived in the expected folder (or the app’s folder if using appDataFolder).
9. Troubleshooting
- redirect_uri_mismatch: Verify the exact redirect URL in Cloud Console matches the plugin-provided callback.
- Consent screen errors: Ensure the OAuth consent screen is configured and, if required, you have added test users or published the app.
- Insufficient permissions on Drive: Confirm the scopes requested match the plugin’s requirements.
- 403 or permission denied: Check that the target Drive account has enough storage and is not restricted by organization policies.
10. Revoke Access
- To revoke plugin access to the Google account, go to https://myaccount.google.com/ permissions, find your app, and remove access.
- After revoking, re-authorize from the plugin if needed.