Better support for multipart/form-data file upload examples
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.2k
- Forks
- 242
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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]);
```
Guía de contribución
Línea de trabajo
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".
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, typescript
- Área
- tooling, web-dev
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100