| CARVIEW |
Select Language
HTTP/2 301
date: Sat, 27 Dec 2025 16:08:58 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_plupload_settings/
server: cloudflare
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
x-redirect-by: WordPress
fastcgi-cache: MISS
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=JirVLjQKRNvt%2FweclOFIITywtTQYZATCCKvN2x1QnnCsnLkIBHiFG6sM8HlH%2BNSKcBJQn%2F%2FAbdadI%2F1%2FMC0flpUtGJF8dycqRpBw3FLfei6ilX0W"}]}
cf-ray: 9b4a145c9f0e8087-BLR
HTTP/2 200
date: Sat, 27 Dec 2025 16:08:58 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
vary: Accept-Encoding
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
link: ; rel="https://api.w.org/"
link: ; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
fastcgi-cache: HIT
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=kOpzsy2FH%2BB1bTw09IlLgP6lEUJXneC%2BT%2BMdu00ON26TVARnBYbAZvxHp%2FT4Ku%2BgX6kwyE4jM8jbaOHNBw7YTJPTNpycrZpkv%2BGkmZDB7MYO%2BTNx"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b4a14645f988087-BLR
gform_plupload_settings - Gravity Forms Documentation
gform_plupload_settings
Description
The filter gform_pluploads_settings allows the initialization settings (file size, file count, browse button, drag and drop, and more) for Plupload to be changed. Plupload is used when the allow multiple files option is enabled.
Usage
The following would apply to all forms.
add_filter( 'gform_plupload_settings', 'your_function_name', 10, 3 );
To limit the scope of your function to a specific form, append the form id to the end of the hook name. (format: gform_plupload_settings_FORMID)
add_filter( 'gform_plupload_settings_75', 'init_plupload_settings', 10, 3 );
Parameters
- $settings array
An array of the current settings for Plupload.
- $form_id integer
The ID of the form in use.
- $field GF_Field_Fileupload
The field object.
Examples
1. Maximum File Size
add_filter( 'gform_plupload_settings', 'init_plupload_settings', 10, 3 );
function init_plupload_settings( $settings, $form_id, $field ){
$settings['filters']['max_file_size'] = '100kb';
return $settings;
}
2. The uploader URL
add_filter( 'gform_plupload_settings', function( $settings, $form_id, $field ){
$settings['url'] = trailingslashit( site_url() ) . '?gf_page=' . GFCommon::get_upload_page_slug();
return $settings;
}, 10, 3 );
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in GF_Field_FileUpload::get_field_input() in includes/fields/class-gf-field-fileupload.php.