gform_file_upload_whitelisting_disabled

Description

The “gform_file_upload_whitelisting_disabled” filter in Gravity Forms allows the disabling of file upload whitelisting. This filter applies to all forms.

Usage

The following would apply to all forms.

add_filter('gform_file_upload_whitelisting_disabled', '__return_true');

Parameters

  • $disabled bool

    Set to ‘true’ to disable whitelisting. Defaults to ‘false’.

Example

$whitelisting_disabled = apply_filters( 'gform_file_upload_whitelisting_disabled', false );

Placement

This code should be placed in the functions.php file of your active theme.

Source Code

This filter is located in includes/upload.php and includes/fields/class-gf-field-fileupload.php.