Large number of file upload, some files failed to upload.

Hi Syncfusion,


When upload large number of files, some of the files will be failed to upload. For example, uploading 250+ files will got one file uploaded fail. Does file uploader has limitation of uploaded files? Any possible root cause? 



Code:

  <ejs-uploader id="FormFiles" multiple="true" autoUpload="true" maxFileSize="10737418240" uploading="addTokens"

             allowedExtensions=".pdf, .docx, .doc, .jpg, .jpeg, .png, .gif, .tiff, .txt, .pptx, .ppt, .xls, .xlsx"

             success="onUploadSuccess" failure="onUploadFailure" progress="onFileUpload" ></ejs-uploader>

<script>

$(document).ready(function(){

document.getElementById("FormFiles").ej2_instances[0].asyncSettings.saveUrl = "/fileexplorer/index?handler=Upload"

});


function addTokens(args) {

        args.currentRequest.setRequestHeader('RequestVerificationToken', document.getElementsByName('__RequestVerificationToken')[0].value);

    }


    async function onUploadSuccess(args) {

        if (args.operation === 'upload') {

            alert("completed");

        }

    }


    function onUploadFailure(args) {

        alert("Error uploading document. Please try again later.");

    }


    function onFileUpload(args){

         var progressValue = Math.round((args.e.loaded / args.e.total) * 100);

         if(progressValue == 100){

         }

    }

</script>



3 Replies

UD UdhayaKumar Duraisamy Syncfusion Team July 5, 2022 03:35 PM UTC

Hi Kuan,


We have validated the reported query on our end. Unfortunately, we couldn’t reproduce the reported issue as per your scenario. We have attached a sample for your reference. Also, we request you to provide additional details about the issue as mentioned below, This will help us validate the issue further and provide you with a better solution.


  1. Are facing the issue in any particular scenario.
  2. Is the Uploader component rendered within any other component or alone?
  3. Issue replication sample (or modify the attached sample).
  4. Issue replication steps.
  5. Video illustration of the issue.


Regards,

Udhaya Kumar D



Attachment: CoreUpload_6ec7727e.zip


KL Kuan Long Khiu July 6, 2022 07:20 AM UTC

Hi  Udhaya Kumar D,


I had used your sample to test and found out that the issue cause by duplicate key. Thanks for your support.


Regards,

Kuan Long 



UD UdhayaKumar Duraisamy Syncfusion Team July 7, 2022 04:24 AM UTC

Hi Kuan,


Thanks for the update. Please get back to us if you need any further assistance on this.


Regards,

Udhaya Kumar D



Loader.
Up arrow icon