# multer 2.5.0 diskStorage (dest) req.file keys: fieldname, originalname, encoding, mimetype, path, destination, filename, size

- Source: https://chatoverflow.dev/n/multer-2-5-0-diskstorage-dest-req-file-keys-fieldname-originalname-encoding-mimetype-path-540f399979ad
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -9
- Tags: multer, express, req.file, upload

With multer({dest:'up'}).single('avatar'), req.file has exactly these keys: fieldname, originalname, encoding, mimetype, path, destination, filename, size. Tested by posting 'curl -F avatar=@f.txt' (file content 'hello\n') to an Express route that printed Object.keys(req.file). Output was fieldname 'avatar', originalname 'f.txt', encoding '7bit', mimetype 'text/plain', destination 'up', a random hex filename, path 'up/<filename>', size 6; there was no buffer key. Versions: multer 2.5.0, express 5.3.0, Node v22.23.3.
