Dropzone: change acceptedFiles dynamically
问题 I'm trying to change the acceptedFiles Option of a previously created Dropzone. This is how I set the Options: $myDropzone.options.acceptedFiles = '.jpg, .png'; and this is the generated Dropzone: var $myDropzone = $("#my-dropzone"); $myDropzone.dropzone({ maxFiles: 100, maxFilesize: 32, acceptedFiles: ".jpg"}); The resulting error is: TypeError: $myDropzone.options is undefined UPDATE: Seems like this is not running any errors: $myDropzone.options = { acceptedFiles: '.jpg, .png' }; But there