src/Fieldset.php
public function getFileFieldNames()
    {
        $results = [];
        if (!isset($this->data['fields'])
            || empty($this->data['fields'])
        ) {
            return $results;
        }

        $table = $this->data['name'];
        foreach ($this->data['fields'] as $field) {
            $name = $table . '_' . $field['name'];

            if (in_array(
                $field['field']['type'],
                [
                        'file',
                        'image',
                        'filelist',
                        'imagelist'
                    ]
            )
            ) {
                $results[] = $name;
            }
        }

        return $results;
    }
public function getFileFieldNames()
    {
        $results = [];
        if (!isset($this->data['fields'])
            || empty($this->data['fields'])
        ) {
            return $results;
        }

        $table = $this->data['name'];
        foreach ($this->data['fields'] as $field) {
            $name = $table . '_' . $field['name'];

            if (in_array(
                $field['field']['type'],
                [
                        'file',
                        'image',
                        'filelist',
                        'imagelist'
                    ]
            )
            ) {
                $results[] = $name;
            }
        }

        return $results;
    }
public function getFileFieldNames ( ) { $ results = [ ] ; if ( ! isset ( $ this -> data [ 'fields' ] ) || empty ( $ this -> data [ 'fields' ] ) ) { return $ results ; } $ table = $ this -> data [ 'name' ] ; foreach ( $ this -> data [ 'fields' ] as $ field ) { $ name = $ table . '_' . $ field [ 'name' ] ; if ( in_array ( $ field [ 'field' ] [ 'type' ] , [ 'file' , 'image' , 'filelist' , 'imagelist' ] ) ) { $ results [ ] = $ name ; } } return $ results ; }
Returns All files

@return array
Returns All files