Nowell pointed out that this has been reviewed since August 6, 2013. A working example using this form might be:
<form class="dropzone" id="my-awesome-dropzone"></form>
You can use this javascript:
Dropzone.options.myAwesomeDropzone = { maxFiles: 1, accept: function(file, done) { console.log("uploaded"); done(); }, init: function() { this.on("maxfilesexceeded", function(file){ alert("No more files please!"); }); } };
The dropzone element even gets a special style, so you can do things like:
<style> .dz-max-files-reached {background-color: red}; </style>
pydanny Aug 10 '13 at 9:09 on 2013-08-10 09:09
source share