public function getDefinedUploadFields()
    {
        $fields = isset(static::$imageFields)
            ? static::$imageFields
            : $this->imagesFields;

        return array_merge($this->getDefinedFileFields(), $fields);
    }
public function getDefinedUploadFields()
    {
        $fields = isset(static::$imageFields)
            ? static::$imageFields
            : $this->imagesFields;

        return array_merge($this->getDefinedFileFields(), $fields);
    }
public function getDefinedUploadFields ( ) { $ fields = isset ( static :: $ imageFields ) ? static :: $ imageFields : $ this -> imagesFields ; return array_merge ( $ this -> getDefinedFileFields ( ) , $ fields ) ; }
Get all the image and file fields defined on model

@return array
Get all the image and file fields defined on model