🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Azure Blob Storage Premium Add-on Setup Guide

Updated 12 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What You Get
  3. Requirements
  4. Quick Start
  5. Step 1: Connect Your Storage Account
  6. Account name and key
  7. Shared access signature
  8. Connection string
  9. Container, endpoint suffix and blob endpoint
  10. The Test button
  11. Step 2: Add a Feed to a Form
  12. Blob path tokens
  13. How a File Travels
  14. The Entry View
  15. Links: Plain or Signed
  16. Merge Tags
  17. Replace the Link and Delete the Local File Safely
  18. Developer Hooks
  19. Security Summary
  20. Troubleshooting
  21. The file stays queued
  22. It fails with AuthenticationFailed
  23. It fails with ContainerNotFound
  24. It fails with an authorization or permission error
  25. What happens if I uninstall the add-on?

Video walkthrough

Gravity Forms Azure Blob Storage Add-On Setup Guide: Storage Account and Feed (WordPress Side)
Video setup guide: Gravity Forms Azure Blob Storage Watch on YouTube

Azure Blob Storage sends the files that visitors upload through Gravity Forms to your own Azure storage account and keeps the blob address in the entry. Files stay out of your WordPress uploads folder, your server stops being the place where documents live, and the people who work with the entries open the files from Azure. The add-on uses your storage account: you keep the data, the billing and the access rules, and nothing goes through a GravityExtra service.

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.

Forms that collect documents, scans or photos fill a web server quickly, and personal documents do not belong in a public folder of a web host. The add-on works in the background after the form was submitted, checks every file in Azure before it calls the file safe, and tells you in the entry exactly what happened.

What You Get

  • A feed for each form that sends the files of the File Upload fields you tick to a container of your storage account.
  • Three ways to sign in: account name and key (Shared Key), a shared access signature (SAS), or a connection string. Keys, SAS values and connection strings are encrypted before they are saved.
  • A blob path template with tokens, so files land in folders such as the year, the month and the entry number.
  • A background queue that uses Action Scheduler when it is there and WP-Cron otherwise. The form submit does not talk to Azure at all.
  • Small files go in one Put Blob request. Large files go as blocks with Put Block and Put Block List, one run at a time, and an interrupted upload continues where it stopped.
  • MD5 checks on every request and a final check of the blob in Azure before the file is marked as ready.
  • Automatic retries with a growing wait of 30 seconds, one minute, two minutes and so on up to an hour, and a clear failure with the reason when the attempts are used up.
  • Entry notes for every step, a status box in the entry view with the blob path and an Open link, and a Try again button for failed files.
  • Plain blob addresses or signed links that expire, for private containers.
  • The option to replace the file link in the entry with the blob address, and to delete the local copy only after Azure confirmed it.
  • A Test button, merge tags, conditional logic and a clean uninstall.

Requirements

You need Gravity Forms 2.9 or newer, WordPress 6.5 or newer, PHP 7.4 or newer with the OpenSSL extension, an active license key and an Azure storage account with a container. The background queue needs WP-Cron or Action Scheduler; on a quiet site a real cron job that calls wp-cron.php every minute moves the files sooner. The add-on talks to Azure over HTTPS with certificate checks and uses version 2026-04-06 of the Azure Blob service REST API.

Quick Start

  1. Create a container in your storage account in the Azure portal. Keep it private unless you really want public links.
  2. Install and activate the add-on, then activate your license key under Forms, Settings, Azure Blob Storage.
  3. On the same screen choose how to sign in, enter the storage account details and the container name, save, and press Test the saved settings.
  4. Open your form, go to Settings, Azure Blob Storage and add a feed. Tick the File Upload fields to send.
  5. Submit a test entry with a small file. Open the entry: the Azure Blob Storage box shows the status and, a moment later, the blob path and an Open link.
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.

Step 1: Connect Your Storage Account

Everything about the account is entered once under Forms, Settings, Azure Blob Storage. Choose how the add-on signs in. The fields on the screen follow your choice.

Sign-in choice What you enter What it needs in Azure Signed links
Account name and key (Shared Key) Storage account name and one of the two account keys Nothing else. The key can read, write and list. Fresh read-only link made by the add-on each time
Shared access signature (SAS) A container SAS URL or the token that starts with sv= Create or Write. Add Read so the add-on can read the blob back and make links. Only when the SAS has Read and has not expired
Connection string The string from Access keys, with an account key or with a SharedAccessSignature Same as the choice it contains Same as the choice it contains

Account name and key

In the Azure portal open your storage account, go to Security and networking, then Access keys, and copy the storage account name and one of the two keys. This choice needs nothing else and can make links that expire. Some organizations switch Shared Key off for their accounts; then use a SAS.

Shared access signature

Create a SAS for the container in the portal (Shared access tokens) and paste the full URL or the token that starts with sv=. A container SAS needs the Create or Write permission to send files. Add Read so the add-on can read the blob back after the upload and can make links. Without Read the add-on still works: it confirms the file from the reply to the upload, which carries the MD5 that Azure calculated, and says so in the entry note. When a SAS expires, files fail with an authentication error until you paste a new one, so note the renewal date. The test result shows the expiry.

Connection string

Paste the connection string from Access keys. Both forms are understood: the one with AccountName and AccountKey and the one with a BlobEndpoint and a SharedAccessSignature. A string that asks for http, or the local storage emulator, is refused: the add-on uses https only.

Container, endpoint suffix and blob endpoint

The container is the default for all feeds; a feed can name another one. The optional endpoint suffix is for other Azure clouds, the optional blob endpoint for a custom domain or a private endpoint (https only). If your storage account has a firewall, allow the address of your web server in it.

The Test button

Save the settings first, then press Test the saved settings. The add-on sends one tiny block to a hidden name. Azure accepts it as an uncommitted block, which never becomes a file, does not show in the normal list of blobs and is removed by Azure after a week. So the test checks the account, the key or SAS, the container and the write permission without leaving a file behind. A failure shows the Azure error code, its message and a hint, for example that the container does not exist.

Step 2: Add a Feed to a Form

Open the form, then Settings, Azure Blob Storage, and add a feed.

  • File Upload fields to send: tick the fields. All of them are ticked at first.
  • Container: optional, empty means the container of the settings.
  • Blob path: the folders and the file name inside the container. The default is gf-uploads/{form_id}/{entry_id}/{file_name}.
  • Link to the file: a plain blob address or a signed link that expires.
  • Copy the blob address into this field and Replace the file link in the entry: for plain addresses, see below.
  • Cache-Control: optional, stored with the blob, for example public, max-age=86400.
  • Delete the local file: see below.
  • Conditional logic: send only when a rule is met, for example only when a box says that the documents may be archived.
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.

Blob path tokens

Token Value
{form_id}, {entry_id}, {field_id} The numbers of the form, the entry and the upload field
{file_name}, {file_base}, {file_ext} The file name, the name without the extension and the extension
{year}, {month}, {day} The date of the entry, in UTC
{site} The host name of your site

Slashes make folders. A name can never climb out of its folder: dot segments and control characters are removed and a name that would be too long falls back to a short safe one. Azure replaces a blob that has the same name, so keep {entry_id} in the path. Two files of one entry with the same name are numbered automatically.

How a File Travels

When the entry is saved the feed makes one job for every file and schedules the first step. That sends nothing, so the confirmation appears at once. The steps then run in the background. With payment feeds you can send the files only after the payment is completed.

Status What it means
Queued The entry is saved and the file waits for its turn. Nothing has been sent yet.
Uploading The file is on its way. A large file is sent in blocks over several background runs. A failed step shows the attempt number and is tried again.
Ready Azure confirmed the blob: Get Blob Properties reports the same size and, when present, the same MD5 as the local file. Only now may the local copy be deleted.
Failed Azure refused the file, a key is wrong or the attempts ran out. The reason is in the entry and in a note, with a Try again link.

Files up to 16 MiB go in one Put Blob call with the MD5 of the content in the Content-MD5 header, so Azure refuses the upload if the bytes changed on the way. Larger files go in blocks of 8 MiB. Each background run sends blocks until its time budget is used and saves where it stopped, so a file of several gigabytes does not need a long PHP time limit. When the last block is in, one Put Block List call commits the blob with its content type and the MD5 of the whole file. Then the add-on asks Azure for the blob properties and compares the size and the MD5 with the local file.

A step that fails because of a temporary problem, such as a timeout, a busy server (503) or a throttling answer (429), is tried again after 30 seconds, then after one minute, two minutes and so on, up to an hour. After five attempts the file is marked as failed. A refusal that cannot get better by waiting, such as a wrong key or a missing container, fails at once and tells you what to check. If Azure reports a different size or MD5 than the local file, the add-on uploads again; a file is never called ready on a guess.

The Entry View

Open any entry that has files. The Azure Blob Storage box shows each file with its status, its size and its blob path. A ready file has an Open the file in Azure link, or Open the file (signed link) for private containers. A failed file shows the reason and a Try again button that starts the file over. Entry notes record when a file was queued, when Azure confirmed it and why it failed.

Choose how links to the file are made. A plain address is the blob URL. It works for visitors only if the container allows public read access, or if you serve the files through your own front door. A signed link adds a signature that expires, so the container can stay private.

  • With the account key the add-on makes a fresh, read-only link each time the entry view or a merge tag needs one. It is valid for one hour by default; the lifetime can be changed with the gfazb_signed_link_ttl filter. Nothing with a signature is stored.
  • With a SAS the saved SAS is added to the address when it has the Read permission and has not expired. A SAS without Read is never put in a link.

The blob address copied into a field, and the replacement of the file link in the entry, are only offered for plain addresses, because a stored signature would expire.

Merge Tags

Use these tags in notifications, confirmations and anywhere Gravity Forms accepts merge tags. Replace 5 with the ID of the upload field:

{azure_blob:5:url}
{azure_blob:5:path}
{azure_blob:5:status}
  • url is the link to the file. For several files in one field the links are on separate lines. Signed links are made at that moment.
  • path is the container and the blob name.
  • status is queued, uploading, ready or failed, and none when the field has no file.

Notifications are normally sent when the form is submitted, which is before the file reached Azure, so the status is queued and the link is empty. For a notification with the link, send it later, for example from a workflow, with the gfazb_file_ready action.

Switch on Replace the file link in the entry with the blob address and, once Azure confirmed the file, the File Upload field of the entry points to the blob, for single files and for fields with several files. Switch on Delete the local file after Azure confirms the blob to free the disk. The add-on deletes the file only when every rule holds: the blob is confirmed, no other feed on the same file is still waiting, and the file lies inside the Gravity Forms upload folder. It never deletes a file for a failed or unconfirmed upload. A note in the entry records the deletion. Use both switches together so entry links keep working.

Developer Hooks

Actions gfazb_file_ready and gfazb_file_failed receive the entry ID and the job. Filters: gfazb_max_attempts (default 5), gfazb_small_file_max (16 MiB), gfazb_block_size (8 MiB), gfazb_signed_link_ttl (one hour) and gfazb_run_budget (seconds per background run).

Security Summary

  • Account keys, SAS values and connection strings are encrypted before they are saved and never printed, logged or put in an error message. SAS signatures are removed from any text that is shown.
  • Every request to Azure uses HTTPS with certificate checks. An http address is refused.
  • Files are read only from the Gravity Forms upload folder. The Try again link and the Test button need a nonce and the right capability.
  • Nothing is sent to anyone but your storage account and the license server.

Troubleshooting

The file stays queued

The queue needs WP-Cron or Action Scheduler. Check that WP-Cron is not disabled without a real cron job in its place and that the license key is active. A site without a license waits and sends nothing.

It fails with AuthenticationFailed

The key or SAS is wrong or has expired, or the clock of your server is more than 15 minutes off. Azure refuses requests with a time that far from its own. Fix it on the settings page, use the Test button and press Try again in the entry.

It fails with ContainerNotFound

The container name is wrong or the container was never created. Create it in the Azure portal. Container names are lower case.

It fails with an authorization or permission error

Check the permissions of the SAS (Create or Write, plus Read) or the firewall of the storage account. A firewall that allows only some networks must include the address of your web server.

What happens if I uninstall the add-on?

Its options, its jobs and its keys are removed. The blobs stay in Azure and the forms and entries are not touched.

See the Azure Blob Storage add-on

Still need help?

Our support team answers tickets every day, usually within a few hours.

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