bookmark_bordergform_file_upload_whitelisting_disabled

Description

Allows the disabling of file upload whitelisting

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

add_filter('gform_file_upload_whitelisting_disabled', '__return_true');

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