Dropzone.options.imageFile = {
url: HOST_NAME + USER_NAME + BUILDER_API +'image/',
method: 'POST',
// enter code here
acceptedFiles: '.jpg, .jpeg, .png',
paramName: "imagefile", // The name that will be used to transfer the file
maxFilesize: 10, // MB
//addRemoveLinks: true,
maxFiles: 2,
init: function() {
this.on("success", function(file, response) {
image_id = response.id;
IMAGES.push(image_id);
check_files();
}),
this.on("removedfile", function(file, response){
data = JSON.parse(file.xhr.response);
alert(data['id']);
});
},
};
Was muss ich tun, um die Dropzone vollständig zurückzusetzen?Wie kann ich Dropzone mit diesem Code zurücksetzen?
Haben Sie Ihre Antwort erhalten? Ich habe das gleiche Problem –
Ich habe das gleiche Problem - rmoveAllFiles wird immer wieder erwähnt - wie Sie das auf dem obigen Artikel ausführen ... Dropzone.options.imageFile.removeAllFiles() funktioniert nicht – Scott
Siehe meine Antwort unten – Scott