Filter: gform_multifile_upload_field
Dynamic Hook Name
This hook supports dynamic naming with the following modifiers:
$form_id$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
| Name | Type | Description |
|---|---|---|
| $field | \GF_Field | The current field object. |
| $form | array | The current form object. |
| $field_id | int | The 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