Title: DigiExpert8 Forms File Uploader for OneDrive
Author: DigiExpert
Published: <strong>May 27, 2026</strong>
Last modified: June 22, 2026

---

Search plugins

![](https://ps.w.org/digiexpert8-forms-file-uploader-for-onedrive/assets/banner-
772x250.png?rev=3550458)

![](https://ps.w.org/digiexpert8-forms-file-uploader-for-onedrive/assets/icon-256x256.
png?rev=3550458)

# DigiExpert8 Forms File Uploader for OneDrive

 By [DigiExpert](https://profiles.wordpress.org/digiexpert8/)

[Download](https://downloads.wordpress.org/plugin/digiexpert8-forms-file-uploader-for-onedrive.1.1.4.zip)

 * [Details](https://wordpress.org/plugins/digiexpert8-forms-file-uploader-for-onedrive/#description)
 * [Reviews](https://wordpress.org/plugins/digiexpert8-forms-file-uploader-for-onedrive/#reviews)
 *  [Installation](https://wordpress.org/plugins/digiexpert8-forms-file-uploader-for-onedrive/#installation)
 * [Development](https://wordpress.org/plugins/digiexpert8-forms-file-uploader-for-onedrive/#developers)

 [Support](https://wordpress.org/support/plugin/digiexpert8-forms-file-uploader-for-onedrive/)

## Description

DigiExpert8 Forms File Uploader for OneDrive is an independent plugin and is not
affiliated with, endorsed by, or sponsored by Microsoft.

The plugin provides:

 * Microsoft OAuth2 connection flow for OneDrive.
 * Gravity Forms, WPForms, and Contact Form 7 file upload support.
 * Form ID and Field ID filtering per provider.
 * Folder templates always control the OneDrive folder path and support placeholders:`{
   form_title}`, `{provider}`, `{form_id}`, `{entry_id}`, `{date}`, `{submission_folder}`.
 * Field placeholders are supported, including Gravity Forms and WPForms values 
   like `{field_3}`, Gravity sub-inputs like `{field_1_3}`, and name-based placeholders
   like `{passport_number}`, `{full_name}`, or `{applicant_name}`.
 * Optional Gravity Forms entry PDF summary upload.
 * Optional local file deletion after successful upload.
 * Encrypted storage for client secret and tokens.

### External Services

This plugin connects to Microsoft OneDrive through Microsoft Graph.

It sends data to Microsoft only when:
 * an administrator clicks `Connect OneDrive`
and completes OAuth authorization * a configured form submission triggers a file
upload to OneDrive * optional Gravity Forms PDF summary upload is enabled and a 
PDF summary is uploaded

Data sent to Microsoft may include:
 * OAuth authorization data required to obtain
access and refresh tokens * uploaded file contents * remote folder and file names
built from plugin settings and form submission context

Folder template examples:
 * `{form_title}_{field_3}_{field_48}_{entry_id}` * `IDLV_Alex
Smith_A1234567_987` * `{form_title}_{full_name}_{passport_number}_{entry_id}` * `{
provider}/{form_id}/{field_3}/{entry_id}` * `{provider}/{form_id}/{field_1_3}-{field_1_6}/{
entry_id}` * `{provider}/{form_id}/{submission_folder}`

Service provider:
 * Microsoft OneDrive / Microsoft Graph

Service documentation and terms:
 * Microsoft Graph: https://learn.microsoft.com/
graph/overview * Microsoft Terms of Use: https://www.microsoft.com/servicesagreement*
Microsoft Privacy Statement: https://privacy.microsoft.com/privacystatement

### Troubleshooting

 * `AADSTS50011` redirect mismatch:
    - The Redirect URI in Entra must exactly match the plugin value, including protocol(`
      https://`), domain, path, and trailing slash behavior.
 * `OneDrive connection failed` after clicking Connect:
    - Save settings first and confirm Tenant ID, Client ID, and Client Secret are
      not empty.
    - If secret is regenerated in Entra, paste new secret Value in plugin and save
      again.
 * Permission errors from Graph:
    - Confirm `Files.ReadWrite` is delegated permission (not application permission).
    - Confirm consent was granted in the same tenant/account you sign in with.
 * Upload size issues:
    - Current upload call uses Microsoft Graph simple upload (`PUT .../content`),
      which supports up to 250 MB per file.
    - Resumable/chunked upload sessions are not implemented in this plugin version.

### Security Notes

 * Only users with `manage_options` can configure or connect OneDrive.
 * OAuth state is validated to prevent CSRF.
 * Settings forms and actions use WordPress nonces.
 * Secrets and tokens are encrypted at rest using site salts.
 * Upload path building sanitizes all path segments.
 * Local path resolution is restricted to the WordPress uploads directory.

### Known Limits

 * This version uploads immediately on form completion.
 * Large/resumable upload sessions are not yet implemented.
 * Upload retries/queue management are not yet implemented.

## Installation

 1. Copy `digiexpert8-forms-file-uploader-for-onedrive` into `/wp-content/plugins/`.
 2. Activate the plugin in WordPress admin.
 3. Open `DigiExpert8 Forms File Uploader for OneDrive` in the WordPress admin menu.
 4. Follow the detailed setup steps below.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“DigiExpert8 Forms File Uploader for OneDrive” is open source software. The following
people have contributed to this plugin.

Contributors

 *   [ DigiExpert ](https://profiles.wordpress.org/digiexpert8/)

[Translate “DigiExpert8 Forms File Uploader for OneDrive” into your language.](https://translate.wordpress.org/projects/wp-plugins/digiexpert8-forms-file-uploader-for-onedrive)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/digiexpert8-forms-file-uploader-for-onedrive/),
check out the [SVN repository](https://plugins.svn.wordpress.org/digiexpert8-forms-file-uploader-for-onedrive/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/digiexpert8-forms-file-uploader-for-onedrive/)
by [RSS](https://plugins.trac.wordpress.org/log/digiexpert8-forms-file-uploader-for-onedrive/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1.4

 * Preserved existing refresh tokens when Microsoft token refresh responses do not
   include a replacement refresh token.
 * Improved local upload URL resolution for protocol/domain aliases, encoded filenames,
   and query strings.
 * Fixed fallback URL downloads being rejected before upload when a form plugin 
   returns a URL that cannot be mapped directly to the uploads directory.
 * Improved WPForms and Contact Form 7 uploaded file detection for newer/nested 
   file payloads.

#### 1.1.3

 * Made the configured Folder Template authoritative for OneDrive folder paths across
   providers.
 * Added form title and field placeholder support for folder templates, including
   Gravity Forms, WPForms, and Contact Form 7 field values.
 * Changed the default folder template to `{form_title}_{field_3}_{field_48}_{entry_id}`
   with updated admin examples.
 * Removed automatic duplicate-folder suffixing so deterministic templates stay 
   unchanged.

#### 1.1.2

 * Added WordPress.org submission polish for external service disclosure and public
   metadata.

#### 1.1.1

 * Added WordPress.com Marketplace-friendly metadata headers.
 * Added Plugins screen Settings link.
 * Added non-breaking extension hooks for upload context and Gravity Forms folder/
   file customization.
 * Updated debug logging to prefer WooCommerce logger when available.

#### 1.1.0

 * Added optional Gravity Forms entry PDF summary upload to the same OneDrive submission
   folder.
 * Added admin setting to enable or disable Gravity Forms PDF summary upload.
 * Kept existing file-upload behavior unchanged by default.

#### 1.0.0

 * Initial production release.

## Meta

 *  Version **1.1.4**
 *  Last updated **1 month ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.2 or higher **
 *  Tested up to **6.9.5**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [contact form 7](https://wordpress.org/plugins/tags/contact-form-7/)[gravity forms](https://wordpress.org/plugins/tags/gravity-forms/)
   [microsoft graph](https://wordpress.org/plugins/tags/microsoft-graph/)[OneDrive](https://wordpress.org/plugins/tags/onedrive/)
   [WPForms](https://wordpress.org/plugins/tags/wpforms/)
 *  [Advanced View](https://wordpress.org/plugins/digiexpert8-forms-file-uploader-for-onedrive/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/digiexpert8-forms-file-uploader-for-onedrive/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/digiexpert8-forms-file-uploader-for-onedrive/reviews/)

## Contributors

 *   [ DigiExpert ](https://profiles.wordpress.org/digiexpert8/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/digiexpert8-forms-file-uploader-for-onedrive/)