---
title: "Comment by Gilbert Walker on \"10 useful HTML file upload tips for web developers\" | Hashnode"
description: "Hey Tapas thanks for sharing! I&#39;m trying to recreate the very first simple file upload using your code, but getting like 5 console.logs instead of 1?? Am I"
url: "https://hashnode.com/posts/10-useful-html-file-upload-tips-for-web-developers/5f8bf4ddd7dc0b17a97a3523/comment/612ff8cec21ac123ca378420"
---

[Discussion](https://hashnode.com/posts/10-useful-html-file-upload-tips-for-web-developers/5f8bf4ddd7dc0b17a97a3523)

Comment [10 useful HTML file upload tips for web developers](https://hashnode.com/posts/10-useful-html-file-upload-tips-for-web-developers/5f8bf4ddd7dc0b17a97a3523)

[Gilbert Walker](https://hashnode.com/@Gil-Gamewise)

[Sep 1, 2021](https://hashnode.com/posts/10-useful-html-file-upload-tips-for-web-developers/5f8bf4ddd7dc0b17a97a3523/comment/612ff8cec21ac123ca378420)

Hey Tapas thanks for sharing!

I'm trying to recreate the very first simple file upload using your code, but getting like 5 console.logs instead of 1??

Am I doing something wrong? ![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1630533821653/DWEeIcyry.png)

The code: const fileUploader = document.getElementById('file-uploader');

```
    fileUploader.addEventListener('change', (event) => {
    const files = event.target.files;
    console.log('files', files);
    });
```
