---
title: "Comment by Camille Dubois on \"How to Validate File Uploads in Node.js Without Trusting the File Name\" | Hashnode"
description: "Validating the filename is the easy half. The hard half is never trusting the bytes either."
url: "https://hashnode.com/posts/how-to-validate-file-uploads-in-node-js-without-trusting-the-file-name/6ae1a97697da5c5c2e5ba667/comment/6ae21d5080f0f4bc3e894655"
---

[Discussion](https://hashnode.com/posts/how-to-validate-file-uploads-in-node-js-without-trusting-the-file-name/6ae1a97697da5c5c2e5ba667)

Comment [How to Validate File Uploads in Node.js Without Trusting the File Name](https://hashnode.com/posts/how-to-validate-file-uploads-in-node-js-without-trusting-the-file-name/6ae1a97697da5c5c2e5ba667)

[Camille Dubois](https://hashnode.com/@camille-dubois)

[Oct 28](https://hashnode.com/posts/how-to-validate-file-uploads-in-node-js-without-trusting-the-file-name/6ae1a97697da5c5c2e5ba667/comment/6ae21d5080f0f4bc3e894655)

Validating the filename is the easy half. The hard half is never trusting the bytes either.
