src/Cms/Definition/ContentGroupDefiner.php
public function withFile(string $name, string $label, array $allowedExtensions = null)
    {
        $this->contentGroup->fileAreas[$name] = ['name' => $name, 'label' => $label, 'allowed_extensions' => $allowedExtensions, 'order' => $this->order++];

        return $this;
    }
public function withFile(string $name, string $label, array $allowedExtensions = null)
    {
        $this->contentGroup->fileAreas[$name] = ['name' => $name, 'label' => $label, 'allowed_extensions' => $allowedExtensions, 'order' => $this->order++];

        return $this;
    }
public function withFile ( string $ name , string $ label , array $ allowedExtensions = null ) { $ this -> contentGroup -> fileAreas [ $ name ] = [ 'name' => $ name , 'label' => $ label , 'allowed_extensions' => $ allowedExtensions , 'order' => $ this -> order ++ ] ; return $ this ; }
Defines a file upload field.

@param string     $name
@param string     $label
@param array|null $allowedExtensions

@return static
Defines a file upload field .