How to disable clickable the form with Dropzone.js?

后端 未结 10 995
孤城傲影
孤城傲影 2020-12-29 08:39

I\'m using Dropzone.js to upload files to the server. I setting up my Dropzone maxFiles parameter to 10 and I was tried this:

$(\'.         


        
10条回答
  •  情深已故
    2020-12-29 08:59

    myDropzone.on('maxfilesreached', function() {
        myDropzone.removeEventListeners();
    });
    myDropzone.on('removedfile', function (file) {
        myDropzone.setupEventListeners();
    });
    

    Don't forget init _updateMaxFilesReachedClass if you have files from your server.

    myDropzone._updateMaxFilesReachedClass()
    

提交回复
热议问题