We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set the initial chunk index when uploading in chunks?

Thread ID:

Created:

Updated:

Platform:

Replies:

148609 Oct 28,2019 12:21 AM UTC Oct 29,2019 01:37 PM UTC Angular - EJ 2 3
loading
Tags: Uploader
Vinzie Villamor
Asked On October 28, 2019 12:21 AM UTC

At some point like when the browser closes, I need to set the initial chunk index to resume the uploading of chunks.

Berly Christopher [Syncfusion]
Replied On October 28, 2019 12:45 PM UTC

Hi Vinzie,

Greetings from Syncfusion Support,

We have checked your query and we would like to know you that when browser closes and reopens Uploader will be rerendered. So can you please provide the following details to assist you further on this?
 
 
  • Whether the browser closing while uploading the chunks via EJ2 File Uploader
  • Exact scenario of the facing issue at your end
  • Error messages if any

Regards, 
Berly B.C 
 


Vinzie Villamor
Replied On October 28, 2019 11:34 PM UTC

Hello,

Thank you for assisting me on this.

Currently, I am facing a kind of issue of I cannot find a way to resume uploading a chunk of file at particular index when the browser is accidentally closes when the upload is ongoing.

What I am trying to do right now is since I am saving the file chunk information (e.g., chunk index, etc.) in the database every time the chunk is uploaded, then I know for sure at which particular chunk index the uploading stops. Now, when the browser reopens again, I can just get the file instance and invoke the upload function from UploaderComponent. However, I could not find a way to set the initial chunk index of the file I am trying to upload. It always start at chunk index 0. 

Can you help me on this?

Thank you.





Sureshkumar P [Syncfusion]
Replied On October 29, 2019 01:37 PM UTC

Hi Vinzie, 
 
We would like to inform you that if the chrome browser is getting closed while uploading is in progress, the component will be destroyed with all the instances. So, we could not persist the data about the uploading files in any place and component will be re-rendered again. This is the default behavior of the uploading process when the browser is getting closed. 
 
Regards, 
Sureshkumar P 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon