🎉 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 Moderate Images Uploaded Through Gravity Forms Before They Are Saved

GravityExtra
How to Moderate Images Uploaded Through Gravity Forms Before They Are Saved

Every form that takes pictures from the public will one day receive a picture that does not belong on your site. A photo contest gets a rude gesture, a profile form gets nudity, a classified ad gets a weapon in the first photo. This guide shows how to check the images uploaded through Gravity Forms automatically, before the entry is saved, and how to decide what should happen to the ones that fail.

A Gravity Forms photo contest form after a flagged image was sent: a red box says there was a problem and the Photo field shows the message that the image looks unsafe
A flagged image is refused with the message you wrote, and it is not listed again on the form.

Why the Usual Moderation Does Not See Pictures

Gravity Forms has an add-on that classifies the text of a submission with outside classification services. A File Upload field holds a file, not text, so a picture passes straight through. The form checks the extension and the size of the file and nothing else. A JPG with an allowed extension and a harmless name can still be anything.

That leaves three options: read every upload by hand, delete bad images after somebody complained, or let a service look at the picture when it is sent. The third one is what moderation services were made for. The Gravity Forms Image Moderation Premium Add-on connects that service to the File Upload field.

What an Image Moderation Service Returns

You send a picture and you get back labels with a confidence. Amazon Rekognition returns labels such as Explicit Nudity or Weapons with a percentage. Sightengine returns a score from 0 to 1 for each model you ask for, for example nudity, weapons, drugs, gore, hate symbols and offensive text inside the image. Google Cloud Vision SafeSearch returns five levels for adult, racy and violence content, from very unlikely to very likely.

None of them says allowed or not allowed. That is your decision, and it is the reason the add-on has a threshold for every category. A news site and a children club need different numbers.

Choose the Provider That Fits

Amazon Rekognition Sightengine Google Cloud Vision
Good at Many labels in one call, nudity, violence, weapons, drugs, hate symbols Choose your models, text inside images, drugs, gore Simple adult, racy and violence levels
Setup IAM user with one permission, region API user and secret API key, billing on
Offensive text in images No Yes, with the text model No
Weapons and drugs Yes Yes No

If you are not sure, start with the provider you already have an account with. Switching later is a change of one setting.

Step by Step: Set It Up

  1. Install the add-on and activate your license under Forms, Settings, Image Moderation.
  2. Choose the provider and save its keys. They are stored encrypted. Press Test connection: the add-on sends one plain gray picture and tells you in plain words if the keys are refused.
  3. Set the thresholds. Start with 60 for every category and leave suggestive content at 0 so that holiday photos are not stopped.
  4. Choose the action. Reject is the safest for a public form.
  5. Choose what happens when the provider is down.
  6. Send a test: upload an ordinary photo to one of your forms and open the entry. The note says Clean.
The Provider settings of the Image Moderation add-on: the provider choice, the AWS region, the Sightengine models, the key boxes with their saved hints and the Test connection result
The provider settings with the key boxes and the result of Test connection.

Set Thresholds That Match Your Audience

A threshold is the confidence at which an image counts as unsafe. At 90 only the clear cases are stopped and some borderline pictures get through. At 40 more of them are stopped, and so are some innocent ones. Moderation is a trade between the two, and the right point depends on what a wrong decision costs you.

  • Public forms with unknown visitors: 50 to 60 for nudity, violence and hate symbols, with reject as the action.
  • Forms for members or customers: 70 to 80, and flag instead of reject so a person decides.
  • Categories you do not care about: set 0. A hunting club will switch weapons off, a pharmacy will switch drugs off.

After a week, open the log. It shows which categories fire and at what scores. If you see harmless photos at 62%, raise the number a little.

Reject, Flag or Blur

Reject

The visitor sees your message on the upload field, the image is deleted, and no entry is saved. It is clear and final, which is what a contest wants. The visitor can choose another picture and send again.

Flag

The entry is saved with the image untouched. It gets a note that names the categories and their scores, it is starred and kept unread, or marked as spam if you prefer, and a notification tells your team. This is the right choice when a person should look at borderline images before they are published.

A Gravity Forms entry screen with the Notes box showing the note Image moderation: summer-market.jpg: Flagged - Nudity and sexual content 93%
A flagged entry carries a note with the categories and their scores.

Blur

The stored image is replaced by a blurred copy with the same name and format. Your team can open the entry without being shown the original, and the image can never end up on a public page by accident. Blurring needs Imagick or GD on the server; the settings screen tells you if you have them.

What Happens When the Provider Is Down

Every outside service fails sometimes. Decide the policy before it happens. The friendly choice is to allow the submission and mark the entry as not checked, so you can look at those entries when the service is back. The strict choice is to block the submission with a message that asks the visitor to try again later. A contest with prizes usually picks strict; a support form picks friendly. The time limit tells the add-on how long a visitor may wait for the answer.

Privacy and Costs

Two honest points. First, the picture is sent to the provider. That is how the check works, and it means the provider becomes a processor of the pictures your visitors send you. Choose a provider whose terms you accept, put a sentence in your privacy policy, and tell visitors where it applies. The add-on itself stores no copy of an image; its log keeps file names, form numbers and category scores. Second, the providers charge for what you send. Large images are shrunk before they are sent, an identical image is not sent twice within a few hours, and only images are sent: a PDF in the same field is never sent.

Images That Are Too Big or in the Wrong Format

Rekognition takes JPEG and PNG up to 5 MB. Google takes up to about 7 MB of image. Visitors send WebP, GIF and phone photos of 12 megapixels. The add-on converts and shrinks the copy it sends, takes the first frame of a GIF, and leaves the stored original alone. If your server has no image library, only images that already fit are checked, and the rest follow your policy for images that cannot be checked.

Check Large Images Later

If you do not want a visitor to wait while a big photo is analysed, switch on the later check. The entry is saved as pending and WordPress asks the provider in the background, with up to three tries. The result lands in the entry as a note and as the status that your merge tags can print.

Use the Result in Your Emails

Two merge tags print the result in a confirmation or a notification: {image_moderation_status} for the status and {image_moderation_labels} for the categories with their percentages. The notification event Image flagged lets you send a message only when something was found, for example to a moderator inbox with the entry link.

A Worked Example: A Photo Contest Form

Take a local photo contest. The form has a name, an e-mail and a Photo field. Visitors use phones, so many photos are large and some are WebP. The organisers want nothing explicit or violent on the contest page, and they do not want to read every entry before it is shown.

  1. Choose Amazon Rekognition, save the keys and the region, and press Test connection.
  2. Keep the thresholds at 60 for nudity, violence, weapons, drugs and hate symbols. Leave suggestive content at 0 because swimwear and sports pictures are normal in a contest.
  3. Choose reject. A visitor who sends a flagged image sees the message on the Photo field and can choose another picture at once.
  4. Choose allow and flag for provider downtime. A contest should not lose entries because a service had a bad minute, and the entries marked as not checked can be looked at later.
  5. Add a notification with the event Image flagged, addressed to the organisers, with the labels merge tag in the body.

The same message appears on a phone. When the contest is over, the organisers open the log, see how many images were stopped and in which categories, and decide whether the thresholds should move for next year.

Common Mistakes to Avoid

  • Setting every threshold to 95. Only a few images ever reach that score, so almost nothing is stopped. Start near 60 and adjust from the log.
  • Forgetting the privacy policy. Pictures leave your server. Say so, and name the provider.
  • Collecting unsafe images to test with. You do not need them. Test connection proves that your keys work, an ordinary photo shows you the Clean path, and the log shows the real scores of what visitors send, so you can tune the thresholds from there.
  • Giving the AWS user too many permissions. One permission is enough: DetectModerationLabels.
  • Leaving the policy for downtime unchosen. The default allows the submission and flags it. That is the right default for most forms, but a prize contest may prefer to block.

Questions People Ask

Does it check PDFs and videos?

No. It checks jpg, png, webp and gif images. Other files in the same field are not sent anywhere.

Can I switch it off for one field?

Yes. Open the field in the form editor, Advanced tab, and untick the box for Image Moderation. A form can also be switched off as a whole.

Will it slow my form down?

The visitor waits for one request to the provider, usually well under a second. You set a time limit, and the later check removes the wait for large images.

Is it a guarantee?

No. Moderation services estimate; they do not know. Keep a person in the loop for what matters, and keep the log.

See the Gravity Forms Image Moderation Premium 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