diff --git a/grails-app/assets/javascripts/forms-knockout-bindings.js b/grails-app/assets/javascripts/forms-knockout-bindings.js index 82107c3..47d93ed 100644 --- a/grails-app/assets/javascripts/forms-knockout-bindings.js +++ b/grails-app/assets/javascripts/forms-knockout-bindings.js @@ -62,12 +62,13 @@ var config = valueAccessor(); config = $.extend({}, config, defaultConfig); - + var dropzone = $(element); var target = config.target; // Expected to be a ko.observableArray $(element).fileupload({ url:config.url, autoUpload:true, - dataType:'json' + dataType:'json', + dropZone: dropzone }).on('fileuploadadd', function(e, data) { complete(false); progress(1);