Gravity Forms Upload Rules

Plugin Banner

Gravity Forms Upload Rules

by Zlatev

Download
Description

Gravity Forms is probably the most popular and mature plugin for building and managing custom forms in WordPress.

Upload Rules

This plugin attempts to fill gaps in Gravity Forms upload fields. It enables you to set file size and image size dimensions limitations to your upload fields – both file upload and image upload.

For issues and pull requests please use the GitHub repo.

  1. Upload the gravity-forms-upload-rules folder to the /wp-content/plugins/ directory
  2. Make sure you have Gravity Forms plugin installed and activated.
  3. Activate the Gravity Forms Upload Rules plugin through the ‘Plugins’ menu in WordPress.
  4. You should be able to use the new field settings under Advanced tab of your upload fields in Gravity Forms – Form Edit screens.
  1. Plugin settings in Post Image fields under Advanced tab. Filesize limit and Conditional image dimensions.

    Plugin settings in Post Image fields under Advanced tab. Filesize limit and Conditional image dimensions.

  2. Plugin settings in Post Image fields under Advanced tab. Filesize limit and Exact image dimensions.

    Plugin settings in Post Image fields under Advanced tab. Filesize limit and Exact image dimensions.

Not yet.

It still works on WP 6.x, Gravity Forms 2.5.x

By Hassan Hossinie (onlinerir) on July 5, 2023

Greate

Confirmed working on WP 5.9.x and GF 2.5x

By manoj382 (threeatetwo) on March 14, 2022

Need a quick solution to set minimum dimensions for image uploads and this worked right out of the box. Thanks!

Works fine on WP 5.x, Gravity Forms 2.5.x

By cabgfx (CabGfx) on November 25, 2019

Tried with a single image upload field, with min+max conditions, etc. Works like a charm. All translations work as well, I generated mine (Danish) from the .POT file included. Thanks!

Thanks, and there is a little gift for you : french translation 🙂

By Jb Audras (audrasjb) on July 6, 2017

Hi, thanks for this nice plugin 🙂 I translated your plugin manually with poedit since it is not properly prepared for GlotPress internationalization. Here is the DL links to get my fr_FR translation and add it to your next version: PO - https://jeanbaptisteaudras.com/gforms_uprules_translations/gforms_uprules-fr_FR.po MO - https://jeanbaptisteaudras.com/gforms_uprules_translations/gforms_uprules-fr_FR.mo Regards, Jean-Baptiste Audras @audrasjb https://jeanbaptisteaudras.com

Should be built in to Gravity forms as standard!

By angeljs on March 17, 2017

Just what I needed, thank you!

works as expected

By dberdal on March 15, 2017

This allowed me to set minimum dimensions for gravity forms photo upload. How is this not built in to gravity forms??? Thankfully there is your plugin.

Works as expected

By jimmyrose on September 3, 2016

It's always nice when a plugin just works. I was sceptical given it hadn't been updated in so long. But if it aint broke, don't fix it

1.0.1

  • Proper static function declarations
  • Tweak admin field styles for better compatability with recent GF versions
  • Normalize line-endings and indentation

1.0

  • Possible fix for those who don’t get upload rules fields in their admin form editor

0.91

  • Fixed JS issue causing “Uncaught TypeError” error

0.9

  • Initial release
Back to top