restrict uploaded file inputs to those in the form being submitted

This commit is contained in:
Bryan Matsuo
2013-12-20 17:17:06 -08:00
parent 7f68c35742
commit fc0ccd4486
4 changed files with 79 additions and 77 deletions

View File

@@ -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)