"retry" method of the Uploader gives error.

When I try to programmatically retry the failed uploads, calling the "retry" method gives an error.

this.$refs.uploader.retry()

Here's the error:

retry failure..png


2 Replies 1 reply marked as answer

SP Sureshkumar P Syncfusion Team September 29, 2022 12:03 PM UTC

Hi Mohammad,

We have validated the reported issue based on your shared information, but we cannot replicate the reported issue on our end. find the validated code example here:

template>

<div class="control_wrapper">

  <ejs-uploader id='chunkupload' name="UploadFiles" :asyncSettings= "path" ref="uploadObj"></ejs-uploader>

      <button @click='btnClick'>ClickToCall Retry</button>

</div>

</template>

<script>

import { UploaderComponent } from "@syncfusion/ej2-vue-inputs";

 

//Component registeration

export default {

name: 'App',

components: {

    'ejs-uploader' : UploaderComponent,

},

setup() {

       var path =  {

        saveUrl: 'https://ej2.syncfusion.com/services/api/uploadbox/Save',

        removeUrl: 'https://ej2.syncfusion.com/services/api/uploadbox/Remove',

        chunkSize: 500000

      }

      return {

        path

      };

    },

    methods: {

    btnClick: function () {      

      this.$refs.uploadObj.retry()

    },

  }

}

 

Find the validated sample in the attachment:

If still, you have faced the same issue, then please replicate the reported issue on the attached sample and revert us with detailed issue replication procedure. These details will help us to provide an exact solution as earlier as possible.

Regards,

Sureshkumar P



SP Sureshkumar P Syncfusion Team September 29, 2022 12:16 PM UTC

Hi Mohammad,

Find the validated sample in the attachment:

Regards,

Sureshkumar P


Attachment: uploader_fa38b5e6.zip

Marked as answer
Loader.
Up arrow icon