Hi there –
We are seeing this warning in our PHP Error logs:
Notice: Trying to access array offset on value of type bool in \wp-content\plugins\gravity-forms-upload-rules\gforms-uploadrules.php on line 115
Anyone seen this before?
Thoughts on how to resolve (without hacking the Add On)?
TL
]]>Hello, i need check image color mode (rgb or cmyk) before upload like as check image size.
Please help me.
Can I limit the file upload size? I thought I could and did at some point but I don’t see it anymore. Thanks.
]]>Hi there, i am not sure if this is due to plugin incompatibility, although it does display properly on back and front end. I also wonder if might be due to the page having multiple upload fields (profile image, file upload, and photo gallery submissions). But the image dimensions rules are not kicking in. Can you help me troubleshoot?
]]>This plugin is great, and it looks like you’re not exactly supporting it anymore, however, I thought I’d take a chance…
I use GF to allow guest authors to post content, and they have the option of uploading up to six images with each post. I installed this plugin and set the limit for each of these 6 images to 1Mb each, and it only works on the sixth image. The other 5 show an error of ( ) Mb regardless of the size of the image.
Is there a way to have this plugin work on each of the fields rather than only the last one? It is a truly useful plugin in that it prevents that terrible blanking out of the form when the files are too large for my erver to accept – which is, needless to say, a very upsetting outcome after having taken the time to fill out the entire form just to have it disappear.
Thanks!
https://www.ads-software.com/plugins/gravity-forms-upload-rules/
]]>Hello,
Thanks for this plugin. It’s very helpful. However, with wp_debug enabled, I’m getting PHP Strict Warnings using PHP 5.4:
PHP Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GFUploadRules::localize() should not be called statically...
Simply adjusting the filter & action hooks at the end of your main plugin file from this:
public function actions() {
add_filter( 'gform_field_validation', array( __CLASS__, 'field_validation' ), 10, 4 );
add_action( 'gform_field_advanced_settings', array( __CLASS__, 'field_settings' ), 5 );
add_action( 'gform_editor_js', array( __CLASS__, 'editor_js' ), 20 );
add_filter( 'gform_tooltips', array( __CLASS__, 'tooltips' ) );
add_action( 'admin_init', array( __CLASS__, 'register_scripts' ) );
add_action( 'init', array( __CLASS__, 'localize' ) );
}
To this:
public function actions() {
add_filter( 'gform_field_validation', array( $this, 'field_validation' ), 10, 4 );
add_action( 'gform_field_advanced_settings', array( $this, 'field_settings' ), 5 );
add_action( 'gform_editor_js', array( $this, 'editor_js' ), 20 );
add_filter( 'gform_tooltips', array( $this, 'tooltips' ) );
add_action( 'admin_init', array( $this, 'register_scripts' ) );
add_action( 'init', array( $this, 'localize' ) );
}
Eliminated the errors. If you’d be willing to incorporate this change into a future update, I’d appreciate it. Thanks again!
https://www.ads-software.com/plugins/gravity-forms-upload-rules/
]]>We’re having issues with getting this to work. We need to restrict the file size to 10MB for a pdf file upload.
It works on our development server, which uses Gravity forms v 1.7.4 (wp 3.7.1), but not on our production version, using gravity forms 1.7.11 (wp 3.7.1).
I might also ad we use W3 Total Cache, wondering if this might be causing an issue…
The form just refreshes and I can see that the file is trying to upload, but I never get an error message.
I CAN get the form to work and produce an error validation message on our production server if I use something small, like 5KB as the limit, but setting it to 10MB doesn’t work.
I even tried setting the limit to the KB equivalent of 10MB to see if maybe it was an issue with using MB.. but that still didn’t work. Any thoughts?
https://www.ads-software.com/plugins/gravity-forms-upload-rules/
]]>can there be a a way to force proportional uploads?
like it must be a square?
any size square…. it will shrink. but it must be a square
https://www.ads-software.com/plugins/gravity-forms-upload-rules/
]]>I set the file size for an image field to be 1500kb or 1.5MB and when I try to upload a 1.2MB file, the upload fails.
Any chance there is a logic error, and/or could you clarify what one should enter in the file size settings field?
thanks
https://www.ads-software.com/plugins/gravity-forms-upload-rules/
]]>i get an error on submission:
Undefined variable: max_filesize_user
…anyone?
https://www.ads-software.com/plugins/gravity-forms-upload-rules/
]]>Hi,
I’, using GF 1.7.2 and cannot find the options using the file upload field.
https://www.ads-software.com/plugins/gravity-forms-upload-rules/
]]>