dash-resumable-upload
dash-resumable-upload copied to clipboard
Don't trigger callbacks using the data right after it finishes loading.
This just caught me up when doing some integration tests. When the component has the completeClass that does not mean the data is actually available, just that the last chunk has been acked by the server and it is beginning to zip the files.
Workaround is just to put a time.sleep() before attempting to read any files.
Hi and thanks for making this available! Can you recommend / show by example the best way how to handle the uploaded file when the process completes? Should I simply go through all the chunks and then on last object time.sleep()? I could not figure out how to use completeClass.
How should I know the filename? Take the chunk name and strip _part or there is a smarter way?
I'd appreciate your help!