restrict uploaded file inputs to those in the form being submitted
This commit is contained in:
@@ -132,7 +132,7 @@ class OperationView extends Backbone.View
|
||||
console.log headerParams
|
||||
|
||||
# add files
|
||||
$.each $('input[type~="file"]'), (i, el) ->
|
||||
for el in form.find('input[type~="file"]')
|
||||
bodyParam.append($(el).attr('name'), el.files[0])
|
||||
|
||||
console.log(bodyParam)
|
||||
|
||||
Reference in New Issue
Block a user