Save an individual files field to a Page
Available since version 0.4.7.
Usage
$int = $formBuilderProcessorSavePage->savePageFileField(Page $page, Field $field, array $filenames, string $formFieldName);
Arguments
Name | Type(s) | Description |
---|---|---|
page | Page | Page that has files field |
field | Field | ProcessWire field instance representing files field |
filenames | array | Names of files to add (full paths included) |
formFieldName | string | Name of the form field being saved |
Return value
int
Number of files added
FormBuilderProcessorSavePage methods and properties
API reference based on ProcessWire core version 3.0.236