react-component / react-component/upload
upload组件的method是不是没什么意义,改put也不能有效上传form-data格式的数据
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 804
- Forks
- 323
- Avg merge
- 12m
- Merged PRs (30d)
- 1
Description
后台要求使用put方式上传,但是文件会损坏。
看了源码open是用了method,可是send还是form-data格式。上传的数据总会损坏。请问是我用的方式不对吗?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the upload component's open method handling and the send path described in the issue, then reproduce a PUT upload using form-data and check whether the resulting file is corrupted. Done means the component's documented or implemented PUT behavior reliably uploads an intact file, with coverage for the reported request format if the repository has relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100