system/src/Grav/Framework/Form/Traits/FormTrait.php
/**
     * Validate all uploaded files.
     *
     * @param array $files
     */
Validate all uploaded files.
@param array $files
Validate all uploaded files . @param array $files
protected function validateUploads(array $files): void
    {
        foreach ($files as $file) {
            if (null === $file) {
                continue;
            }
            if ($file instanceof UploadedFileInterface) {
                $this->validateUpload($file);
            } else {
                $this->validateUploads($file);
            }
        }
    }
protected function validateUploads ( array $ files ) : void { foreach ( $ files as $ file ) { if ( null === $ file ) { continue ; } if ( $ file instanceof UploadedFileInterface ) { $ this -> validateUpload ( $ file ) ; } else { $ this -> validateUploads ( $ file ) ; } } }
Validate all uploaded files.
Validate all uploaded files .