Better support for multipart/form-data file upload examples
- 主要语言
- TypeScript
- 星标
- 1.2k
- 派生
- 242
- PR 合并指标
- 30 天内没有已合并 PR
描述
Currently in the JS / Fetch example, it shows multipart file uploads like so:

This doesn't work as it just sends the string "logo.png" instead of the file.
A better example might be:
```js
// HTML file input, chosen by user
const fileInputs = document.querySelectorAll('input[type="file"]')
form.append("file", fileInputs[0].files[0]);
```
贡献指南
调研方向
Start by locating the JS/Fetch multipart/form-data example and the code that generates its file-upload snippet. Compare the current output with the issue's File-based example, then verify that generated multipart examples reference the selected file rather than the string "logo.png".
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, typescript
- 领域
- tooling, web-dev
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100