I tried it and get a maxFilesize exceeded error. I tried to adjust the maxFileSize variable in the defaultOptions object, and still get this message. I've tried to deploy, and clear browser cache. Error persists.
What am I doing wrong?
What are the limits of the http (Allow File Uploads)?
Nevermind, I found the html node had the option, changed it and it worked. I presume the dropzone.js template also needs to be of the appropriate size as well.
// "myAwesomeDropzone" is the camelized version of the HTML element's ID
Dropzone.options.myDropzone = {
paramName: "myFile", // The name that will be used to transfer the file
maxFilesize: 20000, // MB
accept: function(file, done) {
if (file.name == "justinbieber.jpg") {
done("Naha, you don't.");
}
else { done(); }
}
};
</script>