Kong / Kong/httpsnippet

Better support for multipart/form-data file upload examples

オープン
#241 コメント 4 件 リアクション 3 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
1.2k
フォーク
242
PR マージ指標
30日以内にマージされた PR はありません

説明

Currently in the JS / Fetch example, it shows multipart file uploads like so:

![image](https://user-images.githubusercontent.com/587740/150023128-b3f1d5ae-1507-4a30-b972-2c3dd061f91f.png)

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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。