🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 23, 2026

How to Send Gravity Forms File Uploads to Azure Blob Storage

GravityExtra
How to Send Gravity Forms File Uploads to Azure Blob Storage

Every form that asks for a document is a small file server in disguise. A tenant sends a lease, a client sends a signed contract, a patient sends a scan, a customer sends a photo of a broken part. Gravity Forms stores each of those uploads in the uploads folder of your WordPress site, next to your theme images, on a web host that was chosen to serve pages and not to hold documents. If your company already runs on Microsoft Azure, there is a much better place for them: a private container in Azure Blob Storage. This guide explains how to move form uploads there automatically, safely and without writing code.

Why Uploads Do Not Belong on the Web Server

Web hosting is optimized for pages. A document store has different needs. It has to be large, cheap per gigabyte, redundant, easy to back up, easy to put under access rules and easy to audit. When form uploads sit in the WordPress folder, several things go wrong over time.

  • Disk space. Shared and managed WordPress plans have a quota, and scans and photos use it up quickly.
  • Backups. Every site backup copies every document again, so backups get slower and larger each month.
  • Privacy. A file in the public uploads folder is reachable by anybody who has or guesses the address. That is not what you promise in a privacy policy for identity documents or contracts.
  • Retention. You cannot easily apply lifecycle rules, such as moving old files to a cheaper tier or deleting them after seven years, to a folder inside WordPress.
  • Access. The people who need the documents often have no reason to log in to WordPress at all.

What Azure Blob Storage Gives You

Azure Blob Storage is the object storage of Microsoft Azure. You create a storage account, inside it a container, and every file becomes a blob with a name such as applications/2026/10/1042/proof-of-income.pdf. Containers are private by default, access is controlled with keys, shared access signatures or Microsoft Entra roles, and the data is replicated inside the Azure datacenter or across regions according to the plan you choose. Lifecycle management can move old blobs to cooler tiers and delete them on a schedule, and the same storage can feed other Azure services, such as search, document processing or analytics. For a company that already uses Azure, form documents in a container fit into existing governance and backup.

The Azure Blob Storage settings page of Gravity Forms with the sign-in choice, the storage account name, a key field that shows as dots, the container and the Test button with its success message
One settings page for your own storage account. The saved key is encrypted and never shown again.

What Is Missing: The Bridge

Azure has a REST API for uploading a file, and it is well documented, but Gravity Forms does not talk to it. Without an add-on you would have to write a custom plugin that signs requests, handles large files in blocks, retries failures, checks that the file arrived and cleans up. The Gravity Forms Azure Blob Storage Premium Add-on is that plugin. It uses your own storage account, so you keep the data and the bill, and it adds nothing between your site and Azure.

How the Add-on Works

The add-on is a Gravity Forms feed. You add a feed to a form, tick the File Upload fields and choose a container and a blob path. When a visitor submits the form, the add-on creates one job for every uploaded file and schedules it. That is all that happens during the submission, so the confirmation appears immediately, whatever Azure is doing.

In the background a worker, which is Action Scheduler or WP-Cron, picks up the job. A small file goes to Azure in one request. A large file goes in blocks of eight megabytes, a few blocks per run, and a final request commits them into one blob. Azure is asked about every request: the add-on sends the MD5 of the content, so Azure refuses a request whose bytes changed on the way. When the upload is complete, the add-on asks Azure for the blob properties and compares the size and the MD5 with the local file. Only then is the file marked as ready.

Each change is written to the entry as a note, and the entry page has a box that lists every file with its status, size and blob path. You never have to guess whether a document made it.

Pick How to Sign In

Azure offers several ways to prove who you are, and the add-on supports the three that work from a plain web server.

  • Account name and key (Shared Key). The simplest: the storage account name and one of its two keys from the Access keys page. The add-on signs every request with the key, exactly as the documentation describes. It can make links that expire, too.
  • Shared access signature. Safer when you do not want to hand over the account key. You create a SAS for one container with the Create or Write permission, add Read if the add-on should read the blob back and make links, and set an expiry. Paste the URL and you are done. Remember the expiry date: a new SAS is needed before it passes.
  • Connection string. The single line from the portal that holds the account name and the key, or a blob endpoint and a SAS. The add-on reads it and uses the right method.

Whatever you choose, the secret is encrypted before it is saved in your database. It is never shown again on the settings page, and never appears in a log or an error message.

The Azure Blob Storage feed settings of a form: name, the File Upload fields to send, container, blob path, link options, Cache-Control and the switch to delete the local file
The feed of one form: choose the fields, the blob path and what should happen to the local file.

Set It Up Step by Step

  1. In the Azure portal, create a container in your storage account. Leave it private.
  2. Install the add-on and activate your license key under Forms, Settings, Azure Blob Storage.
  3. Choose how to sign in, enter the account details and the container name, and save.
  4. Press the Test button. The add-on sends one tiny uncommitted block that never becomes a file and that Azure removes after a week, and tells you whether the account, the key or SAS and the container work.
  5. Open your form, go to Settings, Azure Blob Storage and add a feed. Tick the upload fields.
  6. Choose a blob path. The default puts every file under gf-uploads, then the form number, then the entry number.
  7. Send a test entry and watch the status in the entry.

Name Your Blobs So You Can Find Them

The blob path is a template with tokens. The form number, entry number, field number, file name and the date are available. A path such as claims/year/month/entry number and the file name gives you a folder per month and a folder per entry, which makes both browsing in the portal and lifecycle rules easy. The add-on cleans every part: slashes in a file name cannot create extra folders, dot segments are dropped, control characters are removed and overly long names fall back to a safe short one. If two files of one entry would get the same name, the second gets a number.

Big Files and Bad Days

Anything can go wrong between a web server and Azure: a timeout, a throttling answer, a short outage. The add-on expects it. A failed step is tried again after 30 seconds, then after a minute, two minutes and so on, up to an hour, for five attempts. If Azure says that the key is wrong or the container does not exist, retrying cannot help, so the file fails at once with the Azure error code, its message and a hint about what to check. A block that was already accepted is not sent again, and if only the final commit fails, only the commit is repeated.

If something does end up failed, the entry shows the reason and a Try again button. Fix the cause, press the button and the file starts over.

A Gravity Forms entry page with the Azure Blob Storage box listing four files: three ready ones with their blob path and an Open link, and a failed file with the reason and a Try again button
The entry lists each file with its status and blob path. A failed file shows the reason and a Try again button.

Keep Private Files Private

Choose between a plain blob address and a signed link. A plain address is right when the container allows public read access, for example for images that appear on a website. For documents that must stay private, choose signed links. With the account key, the add-on creates a fresh read-only link with a signature that expires, one hour by default, each time somebody opens the entry or a merge tag asks for the link. Nothing with a signature is stored in the database. With a SAS, the saved SAS is added to the link only if it has the Read permission and has not expired.

Replace the Link and Free the Disk

Once the file lives in Azure, the local copy is dead weight. Two switches deal with it. The first replaces the file link in the entry with the blob address, for single files and for fields that hold several files, so the entry points to the right place. The second deletes the local copy, but only when every rule holds: Azure has confirmed the blob with the same size and MD5, no other feed that uses the same file is still waiting, and the file is inside the Gravity Forms upload folder. A failed or unconfirmed upload never loses its file, and a note records the deletion. Turn on both if you want entry links to keep working without the local file.

Use the Blob Address in Emails and Workflows

Merge tags put the result into notifications and confirmations. One tag gives the link, one gives the container and blob name, and one gives the status. Because the upload happens after the submission, the status is still queued when the first notification goes out. For a message that needs the link, send it later, for example from a workflow that listens for the action the add-on fires when a file becomes ready. Developers get a second action when a file gives up, and filters for the number of attempts, the block size and the lifetime of signed links.

A Checklist Before You Go Live

  • The container exists and is private, unless you want public links.
  • The Test button says that Azure accepted the test block.
  • A test entry with a small file reaches the status ready and the blob is in the portal.
  • A test with a file of a few hundred megabytes finishes, if your users send such files.
  • Your cron runs, either WP-Cron on a busy site or a real cron job on a quiet one.
  • The firewall of the storage account allows your web server.
  • You wrote down when the SAS expires, if you use one.
  • You decided whether to delete local files and replace the entry links.

Frequently Asked Questions

Does the visitor wait while the file is sent?

No. The form is submitted and confirmed first. The file is sent in the background, and a large file may take several minutes without anybody noticing.

Does my data pass through anyone else?

No. The add-on talks to your own storage account over HTTPS. The only other server it contacts is the GravityExtra license server, to check your license key.

Can I send different forms to different containers?

Yes. Each feed can name its own container and blob path.

What if my storage account blocks Shared Key?

Use a shared access signature or a connection string that holds one. Some organizations switch Shared Key off for security; the add-on works fine without it.

Is a file marked as ready too early?

No. A file is ready only after Azure reported the blob with the same size and, when present, the same MD5. With a SAS that has no Read permission the add-on cannot ask, and says so in the note.

What does Azure cost?

The add-on only sends the files. You pay Microsoft for storage and transactions according to your plan.

Documents from forms are valuable, and they deserve a proper home. With a feed that sends them to Azure Blob Storage in the background, you keep the form fast, the web server light and every file one click away in the entry.

See the Azure Blob Storage add-on

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr