LoginSignup
12
3

More than 3 years have passed since last update.

Android 5,6系の最新Chromeで「ファイル選択」を押すとChromeが落ちる場合に確認すること

Last updated at Posted at 2018-04-27

下記条件のAndroid Chromeで inputタグのaccept属性の設定がimageだけの指定されている場合に、 「Chromeは停止しました」 となってしまいます。

stop_chrome.png

発生条件

  • Android 5系と6系 (Android 7系と8系では問題なさそうでした)
  • 最新のChromeブラウザ(66.0.3359.126)

具体的には以下のようにimageだけが指定されているとダメなようです。

<input type="file" accept="image/*">

<input type="file" accept="image/jpeg,image/png,image/gif">

<input type="file" accept="image/jpeg">

image以外にpdfを指定するとChromeは停止しないようです。

<input type="file" accept="image/*,application/pdf">

Chromeの不具合が改善されるまではimage属性以外でアップロードされにくいファイルタイプを指定して凌ぐのがよさそうです。

確認手段

最後に、本事象が発生するかどうかを確認しやすいようにサンプルのHTMLを配置していますので、こちらにアクセスしてお試しいただければと思います。
https://s3-ap-northeast-1.amazonaws.com/qiita-samples/sample.html

12
3
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
3