Nette\Forms\Controls\UploadControl::getHtmlName PHP Method

getHtmlName() public method

Returns HTML name of control.
public getHtmlName ( ) : string
return string
    public function getHtmlName()
    {
        return parent::getHtmlName() . ($this->control->multiple ? '[]' : '');
    }

Usage Example

 /**
  * @return string
  */
 public function getHtmlName()
 {
     return parent::getHtmlName() . '[]';
 }