fixed file param name

This commit is contained in:
Tony Tam
2013-05-30 01:25:20 -07:00
parent b5d2f21a6d
commit dbfb1adc26
5 changed files with 36 additions and 29 deletions

View File

@@ -100,7 +100,7 @@ class OperationView extends Backbone.View
# add params except file
for param in @model.parameters
if (param.paramType is 'body' or 'form') and param.name isnt 'file' and map[param.name]?
if (param.paramType is 'body' or 'form') and param.name isnt 'file' and param.name isnt 'File' and map[param.name]?
bodyParam.append(param.name, map[param.name])
# add files