2 people reported

All time, since Aug 21.

File type ignores part Content-Type

“The part header explicitly says Content-Type: image/png, but the parsed File.type is application/octet-stream.”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/bun/issues/5825/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

Multipart file type taken from filename, not part Content-Type. In Request formData(), File.type is derived from the filename extension; the part's Content-Type header is ignored.

Is this your bug?

File my report
Where
Request.formData()
Versions
1.4.0 to 1.4.3
Platforms
Linux, macOS
How bad
Breaks a normal workflow.

Original reports2, newest first

  1. Request#formData(): a file part gets its type from the filename, not from the part's Content-Type#45707
  2. formData() ignores the multipart part's Content-Type header and infers File.type from the filename extension#39884

Do you work on Bun?

Claim its RAP Sheet to see what your users report and answer them in one place.