diff --git a/src/main/coffeescript/view/OperationView.coffee b/src/main/coffeescript/view/OperationView.coffee index 6b50246a..e4d7d7ee 100644 --- a/src/main/coffeescript/view/OperationView.coffee +++ b/src/main/coffeescript/view/OperationView.coffee @@ -162,7 +162,7 @@ class OperationView extends Backbone.View # add params for param in @model.parameters if param.paramType is 'form' - if map[param.name] != undefined + if param.type.toLowerCase() isnt 'file' and map[param.name] != undefined bodyParam.append(param.name, map[param.name]) # headers in operation @@ -179,8 +179,6 @@ class OperationView extends Backbone.View bodyParam.append($(el).attr('name'), el.files[0]) params += 1 - log(bodyParam) - @invocationUrl = if @model.supportHeaderParams() headerParams = @model.getHeaderParams(map) diff --git a/src/main/template/param.handlebars b/src/main/template/param.handlebars index e77203bc..d8516320 100644 --- a/src/main/template/param.handlebars +++ b/src/main/template/param.handlebars @@ -15,10 +15,15 @@ {{/if}} {{/if}} {{else}} - {{#if defaultValue}} - + {{#if isFile}} + +
{{else}} - + {{#if defaultValue}} + + {{else}} + + {{/if}} {{/if}} {{/if}}