---
title: "Discussion on \"Chrome dev tools: File drop event bug that cost me hours in debugging\" | Hashnode"
description: "Discussion on \"Chrome dev tools: File drop event bug that cost me hours in debugging\". TLDR: If you use onDrop event and try to log the files in console, the file array will log empty. But it will available when you use the file."
url: "https://hashnode.com/posts/dev-tools-drop-event-bug/61549aba9c8bfd08f5ba9867"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Chrome dev tools: File drop event bug that cost me hours in debugging](https://vikky.dev/dev-tools-drop-event-bug?utm_source=hashnode&utm_medium=feed)

TLDR: If you use onDrop event and try to log the files in console, the file array will log empty. But it will available when you use the file.

Sep 29, 2021 · 2 min read · vikky.dev  
Read the article

-   [#devtools](https://hashnode.com/tag/devtools)
-   [#files](https://hashnode.com/tag/files)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Vignesh M](https://hashnode.com/@ShivEnigma)

@ShivEnigma

  
[View profile](https://hashnode.com/@ShivEnigma)

Breaking keyboards

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
