Skip to main content

Filter: gform_multifile_upload_field

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $form_id
  2. $field_id

Example hook names:

  • gform_multifile_upload_field (base hook)
  • gform_multifile_upload_field_1 (with first modifier value)
  • gform_multifile_upload_field_1_2 (with all modifier values)

Filter the field object that will be associated with the uploaded file.

This is useful when you want to use Gravity Forms' upload system to upload files. Using this filter you can return a one-time-use field object to process the file as desired.

Parameters

NameTypeDescription
$field\GF_FieldThe current field object.
$formarrayThe current form object.
$field_idintThe field ID as passed via the $_POST. Used to fetch the current $field.

Since

  • 2.2.2

Source

Defined in includes/upload.php at line 57