Horje
Allow reupload file on error on dropzone programatically Code Example
Allow reupload file on error on dropzone programatically
view.dropzone = new Dropzone(form[0], {
    ...
    autoProcessQueue: false,
    uploadMultiple: false,
    parallelUploads: 100,
    maxFiles: 1,
    thumbnailWidth: 300,
    thumbnailHeight: null,
    previewsContainer: inputPreview[0],
    clickable: inputClick[0],
    acceptedFiles: 'image/*',
    ...
    error: function(file, errorMessage, xhr) {

        // Trigger an error on submit
        view.onSubmitComplete({
            file: file,
            xhr: xhr
        });

        // Allow file to be reuploaded !
        file.status = Dropzone.QUEUED;
        // this.cancelUpload(file);
        // this.disable();
        // this.uploadFile(file);

    }
});




Whatever

Related
2022 Code Example 2022 Code Example
kill u... Code Example kill u... Code Example
how to hack sisao Code Example how to hack sisao Code Example
dining philosophers problem solution using semaphores in c Code Example dining philosophers problem solution using semaphores in c Code Example
trapezoid midsegmnent Code Example trapezoid midsegmnent Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7