文件上传时文件内容如何传输

How is file content transmitted on file upload

我使用 <input type="file"/> 上传了一个文件,并使用 chrome devtools 检查了 http request

我可以看到文件名和大小,但看不到文件的内容。

如何传输文件内容?

不是http吗?

algorithm is described in the HTML 5 spec.

简而言之,HTTP 请求正文将包含由边界标记分隔的文件的编码内容以及关联的元数据。

Chrome 的网络选项卡 doesn't display the file content for performance reasons