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

How to Send Gravity Forms Photo Uploads to a NextGEN Gallery

GravityExtra
How to Send Gravity Forms Photo Uploads to a NextGEN Gallery

A photo contest, a community wall, a school open day, a real estate photo drop: every one of them starts with a form where people send pictures, and ends with a gallery on your site. Gravity Forms is very good at the first half. NextGEN Gallery is one of the most used gallery plugins for WordPress, with galleries, albums, thumbnails and display styles. What has been missing is the bridge between them. This guide shows how to build it in about ten minutes, so that a picture sent through a form lands in the right NextGEN gallery, with the right title and tags, and goes public only when you say so.

Why the two plugins do not talk to each other

Gravity Forms saves an uploaded file in its own folder inside the WordPress uploads directory and keeps the address of the file in the entry. NextGEN Gallery keeps its pictures in its own folders under the gallery directory, with its own database tables for galleries, pictures and albums. A file in the Gravity Forms folder is invisible to NextGEN. For years the answer on the support forums has been the same: there is no direct integration, and a custom solution needs PHP code that finds the target, copies the file and registers it.

Doing that by hand is more fragile than it looks. A correct import has to create the database row, keep file names unique, build the thumbnail, correct the rotation, respect the backup and resize settings of NextGEN and fire the hooks that other plugins listen to. The shortcut of copying a file into a gallery folder gives you a file that NextGEN does not know about. The right way is to ask NextGEN to import the file with its own routine, and that is what the Gravity Forms NextGEN Gallery Integration Premium Add-on does.

What you will build

  • A form with a File Upload field, a name and a caption.
  • A drop-down that lists your NextGEN galleries, so the visitor chooses where the picture goes.
  • A rule that gives every picture a title, a description and tags taken from the form.
  • An approval step: pictures stay hidden until you press a button on the entry screen.
  • A confirmation and an e-mail that can link to the gallery.

Step 1: install the three plugins

You need Gravity Forms, the free NextGEN Gallery plugin from WordPress.org and the add-on. Activate them in that order, then open Forms → Settings → NextGEN Gallery and enter your license key. If NextGEN is missing, a notice at the top of the admin says so, and the feed screen stays closed until you fix it.

Step 2: make the form

Create a form with these fields: a Single Line Text field called Your name, a File Upload field called Your photo, a Drop Down called Gallery, a Single Line Text field called Caption and one called Keywords. Allow jpg, png, gif and webp in the upload field. Turn on the multiple file uploader if people should send several pictures at once. Leave the drop-down with a single placeholder choice; the add-on fills it.

A Gravity Forms photo contest form with the fields Your name, Your photo, Gallery (a drop-down filled with the NextGEN galleries), Album, Caption and Keywords
The visitor picks the gallery from a drop-down that lists your NextGEN galleries.

Step 3: add the NextGEN feed

Open the form, then Settings → NextGEN Gallery → Add New. Name the feed, keep the upload field ticked and set Gallery to The gallery the visitor picks in a form field. Choose your Gallery field in Gallery field. In the box Choices choose the same field under List the galleries in this field. From now on the drop-down shows every NextGEN gallery by name, and the value behind each name is the gallery number.

Think about who may pick what. If only some galleries are open to the public, limit the list: the galleries of one album, or everything except a few numbers. The add-on checks the same rule when the form is sent, so someone who edits the page in the browser to send a picture to a closed gallery gets nothing, and you get a note on the entry that names the problem.

The NextGEN Gallery feed settings: the File Upload field, the gallery choice, the choices boxes, the album, the image details with merge tag buttons, the approval and the conditions
The feed settings: which gallery, which album, the image details and the approval step.

Step 4: title, description and tags

Pictures called IMG_4032 do nobody any good. In Image details use the merge tag button at the right of each box to build the text. A title such as Your name followed by a dash and the file name is a good start. Put the caption in the description. For tags, combine the keywords field with a fixed tag, for example the name of the contest, so every picture of the campaign shares one NextGEN tag and you can show a tag cloud later. Three extra tags are available only here: the file name without the extension, the position of the picture in the entry and the entry number.

Step 5: choose the approval rule

When visitors can add pictures to a public gallery, someone has to look at them first. The feed offers two ways to hold pictures back. The first marks them with the NextGEN exclude flag, which is the same flag you use when you hide a single picture in the NextGEN manage screen: the picture is in the gallery, but no display shows it. The second keeps them in a separate pending gallery and moves them to the real gallery when approved. The first is simpler. The second is cleaner if your pending pictures should never share a folder with the public ones.

Open an entry in Forms → Entries. A box called NextGEN Gallery shows the status, a link to the gallery and every picture as a thumbnail. Two buttons decide: Approve images makes the pictures public, and Reject images deletes them from NextGEN with their files. Each decision leaves a note on the entry and can send a notification, so the sender hears from you without extra work.

The NextGEN Gallery box on a Gravity Forms entry screen: status Waiting for approval, a link to the gallery, two thumbnails and the buttons Approve images and Reject images
The entry screen shows the images that were added, the gallery link and the approval buttons.

Giving every visitor a gallery of their own

Sometimes the visitor should not pick anything. A photographer portal, a class project or a real estate listing each want a gallery made for the person or the job. Change Gallery to A new gallery and type a name with merge tags, for example the form title followed by the name of the sender. Then choose how galleries are reused. A new gallery for every entry suits a one-off event. Reuse by name puts every entry with the same name into one gallery, which is the right choice when the name comes from a field such as the property address or the event. Per logged-in user gives each member exactly one gallery that grows with every upload.

NextGEN makes the gallery, its folder and its address name, and the gallery author is the user who sent the form. You can also ask for a WordPress page for the gallery. The page holds the NextGEN shortcode, is linked to the gallery as NextGEN does when you press its own page button, and its address is available as a merge tag, so the confirmation can say: your photos are here, with a link.

Albums

NextGEN albums collect galleries. The feed can add each gallery to an album you choose, to an album the visitor picks in a second drop-down, or to an album with a name made from the form. When the album does not exist yet it is created. With approval switched on, the gallery is added to the album only when the pictures are approved, so an album never shows an empty gallery.

Merge tags for confirmations and e-mails

The add-on gives you the tags {nextgen_gallery_id}, {nextgen_gallery_url}, {nextgen_gallery_name}, {nextgen_image_count} and {nextgen_status}. A confirmation can say: thanks, {nextgen_image_count} pictures were added to {nextgen_gallery_name}. A notification on the event images approved can send the visitor the link when their pictures go live. Conditional logic works as in any feed, so you can add pictures only for a certain answer, and the delayed payment option holds the import until a payment is complete.

What about NextGEN Pro?

The paid edition of NextGEN adds proofing, selling pictures and digital downloads, and its uploader is a tool for the site owner. It does not turn a public form into a gallery. The two work well together: the pictures that arrive through the form are ordinary NextGEN pictures, so you can sell them, proof them or show them with any display type afterwards.

Things worth knowing before you launch

  • Each picture exists twice on the server: the copy that Gravity Forms keeps for the entry and the copy in the gallery. Plan your disk space for both, and set a sensible maximum file size on the upload field.
  • NextGEN makes the thumbnail while it imports. If you change the thumbnail size later, use the regenerate tool of NextGEN as usual.
  • Only jpg, png, gif and webp files that can be read as images are imported. Anything else is skipped with a note.
  • Rejecting pictures does not delete the Gravity Forms copy, and deleting an entry does not delete the pictures in the gallery. That is deliberate: your gallery should not change because someone tidied the entries.
  • Test with a draft page or a private gallery first, then switch on the public rule.

Frequently asked questions

Can visitors send several pictures in one go?

Yes. Use the multiple file uploader of the File Upload field. The feed imports each picture and sets a limit per entry, from 1 to 50, so one submission cannot flood a gallery.

Do visitors need an account?

No. Anyone who can see the form can send pictures. The per user gallery rule needs a logged-in user, and visitors who are not logged in get a new gallery each time.

Will it work with my other gallery plugins?

The add-on works with NextGEN Gallery only. It needs the free plugin from WordPress.org, version 3.32 or newer.

What happens to the original photo?

It stays untouched. NextGEN imports a copy and applies its own settings for backup, resize and watermark.

Is any data sent to another service?

No. Everything happens on your own server between Gravity Forms and NextGEN Gallery.

Get started

The Gravity Forms NextGEN Gallery Integration Premium Add-on turns a Gravity Forms upload field into a front door for your NextGEN galleries, with the checks a public site needs. See the features, the price and the setup guide on the add-on page.

See the NextGEN Gallery 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