dropzone
dropzone copied to clipboard
Crash issue most of the time
Hi
i am facing some issue in one of my application where student upload their answer. Most of time it stop uploading the file in middle but some time it works. I also fixed this with timeout:300000000, but not success in that
I am attaching the screen shot here https://prnt.sc/12sqgf5
$('#kt_dropzone_6').dropzone({
url: "./processupload", // Set the url for your upload script location
paramName: "file", // The name that will be used to transfer the file
// maxFiles: 10,
maxFilesize: 100, // MB
maxFiles: 1,
hiddenInputContainer: "body",
addRemoveLinks: true,
timeout:300000000,
method:"POST",
acceptedFiles: "audio/*,application/pdf,image/*",
headers: {
'x-csrf-token': CSRF_TOKEN,
},
sending: function(data, xhr, formData){
// formData.append('c_id', jQuery("#c_id").val());
},
success: function (file, response) {
$("#pdffilename1").val(response);
// alert(response);
// echo(file);
toastr.options = {
"closeButton": true,
"debug": true,
"newestOnTop": true,
"progressBar": false,
"positionClass": "toast-top-right",
"preventDuplicates": false,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"timeOut": "5000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
};
toastr.success("File uploaded successfully.");
},
accept: function(file, done) {
// alert(file.name);
if (file.name == "justinbieber.jpg") {
done("Naha, you don't.");
} else {
done();
}
}
});
I have the same bug. Did You find solution? At what browser and OS You have this?