🎉 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 Uploads to Nextcloud or ownCloud Automatically

GravityExtra
How to Send Gravity Forms Uploads to Nextcloud or ownCloud Automatically

Many companies run their own Nextcloud or ownCloud because the files of their clients must stay on a server they control. Then a Gravity Forms form arrives: job applications with a CV, a quote request with drawings, a support form with screenshots. Every file lands in the WordPress uploads folder, and somebody has to download it and carry it to the place where the team works. This guide shows how to make the files go straight to your own cloud instead, with folders made for you and a check that every file really arrived.

What goes wrong when uploads stay in WordPress

By default Gravity Forms keeps the uploaded files in a folder under wp-content/uploads. That is fine for a contact form with one PDF a week. It is a poor home for documents that your team needs to work with:

  • The files are in the wrong place. Your team lives in the shared folders of the cloud, not in the WordPress admin, so somebody has to copy each file by hand.
  • Backups and disk space grow. The uploads folder becomes the biggest part of the site, and every backup carries personal documents.
  • Access is hard to control. A file in the uploads folder has a public address that anyone with the address can open, while your cloud has users, groups, links with expiry and an audit trail.

The idea: send each file to your own cloud when the form is submitted

The Gravity Forms Nextcloud Premium Add-on does one job. When a form is submitted, it takes the files from the upload fields you choose, and optionally a PDF of the entry, and uploads each one to your Nextcloud or ownCloud over WebDAV, with a folder structure you define. It then asks your server for the size of the file it has just written, compares it with the size that it sent, and writes a note on the entry that says how many files were sent and checked.

Because the server is yours there is nothing in the middle. No third-party server sees the files, and there is no storage meter on our side. If you ever stop using the add-on, the files are in your cloud, in normal folders.

Step 1: create an app password

Do not give the add-on your normal password. In your Nextcloud or ownCloud open the personal settings, go to the security page and create an app password. Give it a name such as the name of your website. The cloud shows the password once, in groups of letters. Copy it. An app password can be revoked at any time without touching your normal password, it works when two-factor sign-in is on, and it can belong to a dedicated account that only has the folder you want to fill.

Step 2: connect the add-on

Install and activate the add-on and enter your license key under Forms → Settings → Nextcloud. In the section for your server choose Nextcloud or ownCloud, type the server address, the user name and the app password, and save. Then press Test connection: the add-on asks your server for the top folder of the account and shows the answer in plain words. Nothing is created or uploaded by the test.

The Nextcloud settings screen in Gravity Forms: server type, server address, user name, app password that is stored encrypted, the largest file to send and the Test connection button
Your own server: the app password is stored encrypted and is never shown again.

Two details matter for security. The app password is stored encrypted, with a key derived from your site’s secret keys, and it is never shown again: the field stays empty after saving and leaving it empty keeps the saved value. And if you prefer to keep the credentials out of the database, define them as constants in wp-config.php and they win over the screen. The address must be https, because the password travels with every request.

Step 3: add a feed to the form

Open the form, go to Settings → Nextcloud and add a feed. Tick the File Upload fields you want to send; single and multiple upload fields both work. You can add a condition so that only some submissions are sent, for example only the ones where a drop-down says Customer.

The Nextcloud feed settings: file upload fields to send, generated PDFs, folder with tokens, file names, public share link, expiry and the entry options
The feed: which files, which folder, whether to create a public link, and what to do with the entry and the local file.

The folder is where the files land. It accepts tokens for the form, the field, the entry and the date, so the default Gravity Forms/{form_slug}/{Y}/{m} gives you a tidy tree: one folder per form and per month. Use the entry token to make one folder per submission, which is handy when every application has several documents. The add-on creates each missing folder level with a MKCOL request, so there is nothing to prepare on the server.

You also choose how files are named. The safe default keeps the original name and adds a short random ending, so two people who both upload a file called resume.pdf never overwrite each other. A second choice keeps the plain name and adds the ending only when that name is already taken. A third choice uses a random name that hides the original. In every case a file that is already in the folder is left alone: the upload carries a condition that refuses to replace an existing file.

Step 4: links, PDFs and the entry

Turn on Create a public share link if people outside your team need to open the file. The add-on asks your server for a read-only public link to each file, optionally with an expiry in days, and keeps it. With Store the share link in the entry the entry, the entries list, the exports and the notifications show that link instead of the address on your WordPress server. With Delete the local copy the file is also removed from WordPress, but only after the cloud confirmed the file and the entry holds the link, so a failure never loses a file.

If you use the Gravity PDF plugin, its templates for the form show up as Generated PDFs to send in the feed. The add-on makes the PDF for the entry, uploads it next to the other files and removes its temporary copy. Another PDF tool can add files through the gfnextcloud_extra_files filter.

What it looks like on the entry

On the entry screen, a box named Nextcloud lists each file with its size and a link, and a note says how many files were sent and checked. If something went wrong, the note lists the files that were not sent and the reason in plain words: the password was refused, the account is out of space, the server is in maintenance mode, a folder could not be created.

A Gravity Forms entry screen with the Nextcloud box that lists the uploaded file with a link to its folder and a Send files again button, and the note that one file was sent and checked
The entry screen: every file on your server, a retry button and a note.

The box has a button, Send files again. It runs the feeds once more for that entry and skips every file that was already sent, so you can press it after fixing a password or after an outage without creating duplicates. It is also the way to send the files of entries that were submitted before you installed the add-on.

How the upload is checked

The add-on uses the WebDAV interface of the files of the account. For each file it sends a PUT request with a SHA-256 checksum header, which the server verifies against the bytes it received, together with the modified time of the file. After the upload it sends a PROPFIND request for the new file and compares the size on the server with the size it sent. If they differ it deletes the file it just created, keeps the original on your WordPress server and reports the problem. Redirects are never followed and certificates are always checked, so a wrong address fails clearly instead of sending a password somewhere else.

Things to know before you start

  • The upload happens while the form is processed. A very large file makes the submission a little slower, so choose a limit that fits your hosting. The default is 50 megabytes and the add-on never sends a file in pieces.
  • If your cloud is unreachable, the visitor still sees the confirmation. The file stays on your WordPress server, the entry gets a note and you can send it later.
  • Public links are optional and need the sharing of public links to be allowed on your cloud. The note shows the reason when the server says no.
  • The add-on only creates folders and uploads new files. It never deletes or replaces anything that was already in your cloud.

Questions

Does it work with ownCloud as well as Nextcloud?

Yes. Choose ownCloud in the settings. Both use the same files address and the same sharing interface, and the add-on follows the documented interfaces of both.

Do I have to install an app on my cloud?

No. It uses a normal account, an app password and the standard WebDAV address of the account.

Can I send only some forms, or only some files?

Yes. Feeds are per form, you tick the upload fields, and a feed condition can limit it further.

Where is my password kept?

Encrypted in the WordPress database, or in a constant in wp-config.php if you prefer. It is never shown after saving and never written to notes or logs.

Does the add-on work with the new Gravity Forms 3 and with older versions?

It supports Gravity Forms 2.9 and newer and is tested with Gravity Forms 3.1.2 on PHP 8.3 and Gravity Forms 2.9.8 on PHP 7.4.

Get started

The Gravity Forms Nextcloud Premium Add-on sends every Gravity Forms upload, and optionally a PDF of the entry, to your own Nextcloud or ownCloud with folders, a size check and optional share links. See the features, the price and the setup guide on the add-on page.

See the Nextcloud 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