            id_param_name = {% if method.parameters.all | filter(p => p.isUploadID) | length > 0 %}{% for parameter in method.parameters.all | filter(parameter => parameter.isUploadID) %}"{{ parameter.name }}"{% endfor %}{% else %}nil{% endif %}

{% for parameter in method.parameters.all %}
{% if parameter.type == 'file' %}
            param_name = '{{ parameter.name }}'

{% endif %}
{% endfor %}
            @client.chunked_upload(
                path: api_path,
                headers: api_headers,
                params: api_params,
                param_name: param_name,
                id_param_name: id_param_name,
                on_progress: on_progress,
{% if method.responseModel and method.responseModel != 'any' %}
                response_type: Models::{{method.responseModel | caseUcfirst}}
{% endif %}
            )