react-component / react-component/upload

upload a directory which size is very bigger(above 100G), this component will make the chrome memory usage to exceed 2G, and the crash

Open
#515 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hi guys,
this upload component will make the chrome memory usage to exceed 2G, and the webpage will crash, if i specific a substantial directory, but if i use the raw input element, the chrome is ok. (i make the webkitdirectory is true).

so is this bug?

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.

Research direction

Start by reproducing the crash with the upload component, a directory larger than 100G, and webkitdirectory enabled, then compare it with the raw input element. Trace the directory-upload path and measure Chrome memory usage; done means large directory uploads no longer cause the webpage to crash.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend, performance, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.