react-component / react-component/upload

upload组件的method是不是没什么意义,改put也不能有效上传form-data格式的数据

Open
#387 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

图片

后台要求使用put方式上传,但是文件会损坏。

看了源码open是用了method,可是send还是form-data格式。上传的数据总会损坏。请问是我用的方式不对吗?

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.