dropzone icon indicating copy to clipboard operation
dropzone copied to clipboard

Crash issue most of the time

Open wontone18 opened this issue 3 years ago • 1 comments

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();
                }
            }
        });

wontone18 avatar May 11 '21 09:05 wontone18

I have the same bug. Did You find solution? At what browser and OS You have this?

A-Obukhov avatar Oct 15 '21 17:10 A-Obukhov