Gravity Forms Upload Rules Plugin
Adds extra upload rules to file/image Gravity Froms upload fields. You will be able to limit upload file size and dimensions of uploaded images.
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.
Installation
- Upload the
gravity-forms-upload-rules folder to the /wp-content/plugins/ directory - Make sure you have Gravity Forms plugin installed and activated.
- Activate the Gravity Forms Upload Rules plugin through the ‘Plugins’ menu in WordPress.
- You should be able to use the new field settings under Advanced tab of your upload fields in Gravity Forms – Form Edit screens.
Screenshots

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 Exact image dimensions.
FAQ
Changelog
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