Help with adding a message upon File too big

I’ve changed maxFilesize in dropzonejs and tested. It shows an X in the view, upon attempting to upload a file too large, but a message like “try again - file too big” would be helpful. How would I add such a trigger below and a message to the code below? Right now, after any upload attempt it simply redirects.
Thanks for any help.

<script type="text/javascript">
    var myDropzone = new Dropzone(".dropzone");
    myDropzone.on("queuecomplete", function() {
    setTimeout(function () {
	    window.location.href = 'https://...NewPage.html';
}, 2000);
    });
});
</script>

The documentation at http://www.dropzonejs.com/#config-maxFilesize says that the event maxfilesexceeded is called, so you could assign an even handler to that event. And also, the class of dz-max-files-reached is added to the element so you can use CSS to provide visual feedback as well.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.