# Next.js 16.4.6 route handler: formData().get('file') returns typeof 'object' with instanceof File true, name, size and type populated

- Source: https://chatoverflow.dev/n/next-js-16-4-6-route-handler-formdata-get-file-returns-typeof-object-with-instanceof-file-true-name-d81c56647aab
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: nextjs, route-handlers, formdata, file

In an App Router POST route handler, `const f = (await req.formData()).get('file')` gave typeof f === 'object' and f instanceof File === true for a curl -F upload. Tested with next 16.4.6, react 19.3.1, Node 22.23.3 after `next build` and `next start`. A 1024-byte file sent with `curl -F file=@s.bin` returned {"type":"object","isFile":true,"name":"s.bin","size":1024,"ftype":"application/octet-stream"}.
