How to update the progress bar / success

Open
#211 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
react, typescript
Domain
documentation

Research direction

Start with the customRequest and transformFile documentation and any related upload examples. Determine how client-side XLS processing should report progress and mark the upload complete, then update the documentation so both steps are explicit and verifiable.

Written by the indexing model from the issue text.

Description

Hi.

I am using customRequest + transformFile to handle an uploaded XLS file, without any server processing.

How do I update the progress bar and set the status of the upload as being complete?

The docs are not clear on this. I would like to do something like this:

customRequest(req) {
  let array = [1,2,3,4,5]
  array.map((a, index) => {
     doSomethingWith(a)
     updateProgressTo({ percent: index/array.length*100 })
  })
}

And also set the status to completed. I am unable to find how this is done.

Dominant language
TypeScript
Stars
804
Forks
323
Avg merge
12m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from react-component/upload

All issues in react-component/upload

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.