diff --git a/modules/swagger-codegen/src/main/resources/typescript-jquery/api.mustache b/modules/swagger-codegen/src/main/resources/typescript-jquery/api.mustache index 5acab55f344..2191d52f965 100644 --- a/modules/swagger-codegen/src/main/resources/typescript-jquery/api.mustache +++ b/modules/swagger-codegen/src/main/resources/typescript-jquery/api.mustache @@ -103,7 +103,7 @@ export class {{classname}} { {{#formParams}} {{#isFile}} reqHasFile = true; - formParams = {{paramName}}; + formParams.append("{{baseName}}", {{paramName}}); {{/isFile}} {{^isFile}} {{#isListContainer}}