I have this HTML:
<div id='drop_zone'>
<div class="close_button" id="removeAllImages">Remove All</div>
<form action="PHP/uploads.php" class="dropzone" id='fbDropZone'></form>
</div>
and this Javascript in the $(document).ready(function() {}
window.Dropzone;
Dropzone.autoDiscover = false;
$('#fbDropZone').dropzone = {
init: function() {
fbDropZone = this;
$("#removeAllImages").click(function(){fbDropZone.removeAllFiles();})
},
paramName: "file",
maxFilesize: 5,
maxFiles : 1,
autoProcessQueue : false,
};
But the init:function()
isn't being executed. I can turn autoProcessQueue
to false
or true
and that works so I know the fbDropZone
id
is correct - but the maxFiles
is ignored as well. Have I done a daft syntax error somewhere..? I'm running Safari 7.