Removing erroneous files before upload
maxFilesize: 1024, // MB
autoProcessQueue: false,
uploadMultiple: true,
- parallelUploads: 99,
+ parallelUploads: 99, // arbitrary large number for parallel uploads
success: function (file, response) {
if (response.status == "success") {
$(".btn-create-resource").click(function () {
$("html, #dz-container").css("cursor", "progress");
+
+ // Delete invalid files from queue before uploading
+ $(".dz-error .btn-remove").trigger("click");
+
var title = $("#txtTitle").val().trim();
if (!title) {
title = $("#txtTitle").attr("placeholder");
