<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kaminashi-developer</author_name>
  <author_url>https://blog.hatena.ne.jp/kaminashi-developer/</author_url>
  <blog_title>カミナシ エンジニアブログ</blog_title>
  <blog_url>https://kaminashi-developer.hatenablog.jp/</blog_url>
  <categories>
    <anon>Lobster</anon>
    <anon>フロントエンド</anon>
  </categories>
  <description>「よし、これで完璧！」と思って実装したファイルアップロード機能。テストで同じファイルを2回選んだら...あれ？2回目は何も起きない。 // さっきまで動いてたはずなのに... &lt;input type=&quot;file&quot; onChange={(e) =&gt; { console.log('ファイル選択した！', e.target.files[0]); uploadFile(e.target.files[0]); }} /&gt; 「え、なんでonChange動かんの...？」 Chromeのコンソールとにらめっこすること数分。これ、実は私の実装ミスじゃなくて、ブラウザの仕様に起因する面白い問題だったんです。今日…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkaminashi-developer.hatenablog.jp%2Fentry%2F2025%2F11%2F11%2F101453&quot; title=&quot;input[type=&amp;quot;file&amp;quot;] 同じファイルを選んでもchangeイベントが発火しない問題をちょっとだけ深掘りするよ🎶 - カミナシ エンジニアブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/k/kaminashi-developer/20251111/20251111100718.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-11-11 10:14:53</published>
  <title>input[type=&quot;file&quot;] 同じファイルを選んでもchangeイベントが発火しない問題をちょっとだけ深掘りするよ🎶</title>
  <type>rich</type>
  <url>https://kaminashi-developer.hatenablog.jp/entry/2025/11/11/101453</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
