src/Forms/Form.php
public function getEncType()
    {
        if ($this->encType) {
            return $this->encType;
        }

        if ($fields = $this->fields->dataFields()) {
            foreach ($fields as $field) {
                if ($field instanceof FileField) {
                    return self::ENC_TYPE_MULTIPART;
                }
            }
        }

        return self::ENC_TYPE_URLENCODED;
    }
public function getEncType()
    {
        if ($this->encType) {
            return $this->encType;
        }

        if ($fields = $this->fields->dataFields()) {
            foreach ($fields as $field) {
                if ($field instanceof FileField) {
                    return self::ENC_TYPE_MULTIPART;
                }
            }
        }

        return self::ENC_TYPE_URLENCODED;
    }
public function getEncType ( ) { if ( $ this -> encType ) { return $ this -> encType ; } if ( $ fields = $ this -> fields -> dataFields ( ) ) { foreach ( $ fields as $ field ) { if ( $ field instanceof FileField ) { return self :: ENC_TYPE_MULTIPART ; } } } return self :: ENC_TYPE_URLENCODED ; }
Returns the encoding type for the form.

By default this will be URL encoded, unless there is a file field present
in which case multipart is used. You can also set the enc type using
{@link setEncType}.
Returns the encoding type for the form .