How to Send Uploaded Files to OneDrive Automatically

Stop moving files by hand. Connect your form’s File Upload field to OneDrive and every document your team collects goes straight to the right folder — organized, named, and ready to find.

Build Time & Skill

10-15 min

Beginner

What you'll learn

How to connect your form's File Upload field to OneDrive so submitted documents land in the right folder automatically, sorted by employee, department, or any other data from the form.

An illustration of an onboarding form's submission existing in Cognito Forms and syncing to OneDrive.

An illustration of an onboarding form's submission existing in Cognito Forms and syncing to OneDrive.

Forms asking for uploaded files carry a hidden cost. A vendor submits a copy of their company information or proof of insurance. It lands in Cognito Forms. Then, for every single submission, your team downloads it, opens OneDrive, finds the correct folder, and re-uploads it.

Cognito Forms’ File Sync feature takes this step out of the process entirely. Connect your form’s File Upload field to OneDrive only one time, and submitted files go right where they belong.

This setup is a strong fit for teams that:

  • Run internal workflows where employees, contractors, or vendors upload documents as part of a structured or multi-step process.
  • Work out of a shared OneDrive folder and need submitted files to land there without a manual handoff step.
  • Manage multiple document types across submissions where consistent naming and folder organization matters for retrieval and compliance.
  • Support high submission volume that makes manual filing unsustainable.

Understanding File Sync

File Sync creates a direct, one-way link between a File Upload field on your form and a destination folder in your OneDrive account. As soon as someone submits an entry, any files they attached are automatically transferred to your designated OneDrive folder. No third-party tools, no manual steps, and no integration middleware required.

Take an employee onboarding workflow as an example. A new hire submits their paperwork (signed offer letter, direct deposit form, and ID verification) through a Cognito Forms onboarding form. Without File Sync, someone on your HR team has to download each file and drop it into the right OneDrive folder manually. With File Sync, those documents appear in the correct folder the moment the form is submitted.

Before getting started, there are a few key behaviors worth knowing:

  • The original file is always preserved. Files are copied to OneDrive, not transferred. The source file remains in Cognito Forms and OneDrive receives its own independent copy.
  • Resubmissions only send new files. If a user updates and resubmits a document, only the replacement file is synced. Whatever was previously delivered to OneDrive stays there, unchanged.
  • Deletions in Cognito Forms have no effect on OneDrive. Removing a file or entry on the Cognito Forms side does not touch anything that has already been synced.
  • You decide how files are organized. Send everything to a fixed folder, or set up a dynamic subfolder structure that builds itself from form data (i.e. organizing files by employee, department, or submission date).

Before You Begin

Here’s what you’ll need before setting up File Sync:

  • A form with a File Upload field: File Sync only works with File Upload fields.
  • A paid Cognito Forms account: File Sync is available on Pro, Team, and Enterprise plans. Each file transferred counts toward your organization’s API usage. See Integration Billing for details.
  • Microsoft account with OneDrive access: Any Microsoft account with editor access to your destination folder. Visit Microsoft’s support articles for more information on OneDrive folder sharing and permissions.

How to Send Files to OneDrive: Step-by-Step Setup

Connect your form to OneDrive by enabling Sync Files to Cloud Storage in your File Upload field’s settings, connecting your Microsoft account, and customizing file naming and organization. Once created, the integration can be used across your entire organization and other forms can connect to it without authenticating again.

Step 1: Enable File Sync on your File Upload field

Animated GIF showing how to send uploaded files to OneDrive automatically using Cognito Forms File Sync

Turn on the setting that allows you to connect your File Upload field to your OneDrive account. To do this:

  1. Open your form’s Build page and select the File Upload field that will collect documents.
  2. In the field settings, enable Sync Files to Cloud Storage.
  3. Select OneDrive as your storage provider.
  4. Authorize access to your Microsoft account when prompted.

Step 2: Choose your destination folder

Animated GIF showing how to choose the folder to send files to in OneDrive

After authorizing OneDrive, configure where your files will go:

  1. Under Connected Folder, select the OneDrive folder where synced files will land.
  2. Optionally, select Change Account to use a different connected Microsoft account.

If your team works out of a shared OneDrive folder, you can select that folder here as long as your Microsoft account has editor permissions on it. This means files submitted through your form will land directly in a location the whole team can already access, with no extra sharing steps required


Step 3: Choose which fields to sync

Screenshot of the setting to turn File Sync on or off for specific form fields

Use the Fields to Sync section to choose which File Upload fields on your form should send files to OneDrive.

  • If your form contains more than one File Upload field, you have the option to sync all of them or limit syncing to specific ones.
  • If you do choose to sync multiple File Upload fields from the same form, they must all route to the same folder in OneDrive.
  • To prevent a particular field from syncing, turn off the toggle for that field. Any files submitted through that field will still be saved in Cognito Forms — they just won’t be sent to cloud storage.

Screenshot of the setting to turn File Sync on or off for specific form fields

Quick Tip

Once an integration exists, any form in your organization can connect to it, without creating a new integration or re-authenticating your Microsoft account. Just remember, form Administrators can connect forms to an existing integration, but only Organization Administrators can create or delete integrations.


Step 4: Set up dynamic folder paths and file names

This is where File Sync moves beyond a simple file collection tool and becomes a self-organizing filing system. Instead of dumping every document into a single static folder, you can define a folder structure and file naming convention that automatically populate based on the actual data submitted in each entry.

Folder Path determines the subfolder hierarchy within your connected folder. File Name dictates what each synced file is labeled. Both fields support tokens, which are dynamic placeholders that pull live values directly from the form at the time of submission.

Animated GIF showing how to set up dynamic folder names and field names using information from the form submission

A real example

Say your HR team runs a new hire onboarding form. Employees enter their name, department, and the type of document they’re uploading before attaching the file. You could configure File Sync like this:

Say you’re hiring several new positions across multiple departments. Applicants enter their information and attach their resume to your File Upload field. You could configure File Sync like this:

  • Folder Path: Recruiting & Hiring/[Department]/[Job Title]
  • File Name: [Employee Name] - [Field Name] - [Entry.DateSubmitted]

When Jordan Lee applies for the Senior Data Analyst position with her resume attached on April 21, 2026, the file lands at:
📁 Recruiting & Hiring > Operations > Senior Data Analyst > Jordan Lee - Resume - 2026-04-21.pdf

Even though she was the first person to submit an application and the ‘Operations’ subfolder didn’t exist before, your configuration told the form to create it. The file was named and filed without anyone touching it.

How can I organize my files and folders?

The right structure depends on how your team retrieves files. Here are several approaches that work well for internal operations/workflows:


Managing and Monitoring Your OneDrive Integration

Organization Administrators have full visibility into all active integrations via Organization Settings > Integrations. From this page, you can review which forms are linked to each integration, update your default folder paths and file names, and remove integrations.

How do I confirm a file was successfully delivered?

Animated GIF showing how to check the audit log to see where your forms uploaded files were sent in Google Drive

To verify that a particular file made it to OneDrive, open the relevant entry and check the activity log. This log tracks the delivery status of every synced file, including the timestamp and whether the sync completed successfully. If your workflow has compliance requirements where documenting receipt of a file matters, the activity log serves as a dependable audit trail without needing any additional tracking tools.


Additional Features to Explore

File Sync handles the delivery, and these features extend what you can do with that foundation:

  • Show or hide specific File Upload fields based on earlier answers, using Conditional Logic. Clients only see and upload what’s relevant to their situation.
  • Send an automatic confirmation email when files are received, so everyone knows the submission went through without following up manually.
  • Create a secure document portal. Use Guest Access to give employees, contractors, or vendors a private login where they can submit documents and track their own uploads, without email links or shared inboxes

Start Sending Your Files to OneDrive Today

Your form already collects the documents your team needs. File Sync makes sure they land where your team actually works, organized, named, and ready to find in OneDrive without anyone moving them manually. Set up the integration once, configure your folder structure, and every future submission handles its own filing.


FAQ