I'm using a submission form where people can upload 10 images and was wondering if it's possible to check if attached files have a minimum width of 1024 pixels. Is that possible? Or maybe possible to include this kind of option in a future release?
I'm using a submission form where people can upload 10 images and was wondering if it's possible to check if attached files have a minimum width of 1024 pixels. Is that possible? Or maybe possible to include this kind of option in a future release?
This should be doable with custom code in the Gravity Forms gform_validation hook.
Here's some PHP to help as well:
http://www.electrictoolbox.com/php-get-image-size/
Thanks!
Have been reading the information but don't know how to start :). Are there any examples you might have to implement the hook and check? Would really appreciate it!
Found the solution: http://zzlatev.com/gravity-forms-upload-limits/
Need to tweak for settings, but first test works like a charm!
Awesome, thanks for sharing!