multipart/form-data 未在 header 中发送二进制数据

multipart/form-data not sending binary data in header

我想知道为什么这段代码没有在 HTTP 请求中发送文件数据 header。

<!DOCTYPE html>
<html>
  <head>
    <title>Test</title>
  </head>
  <body>
    <form enctype="multipart/form-data" action="test.html" method="post">
      <input type="file" name="photo">
      <button type="submit">Submit</button>
    </form>
  </body>
</html>

它没有指向任何服务器端代码,但据我所知,这不会影响生成 HTTP 请求的浏览器。查看实际的 HTTP 请求,它表明它正在获取文件名而不是实际数据。下面的 link 显示 chrome.

中的请求负载

Request payload

正在发送文件数据。 Chrome 开发工具不显示它。