Skip to content

Instantly share code, notes, and snippets.

@Twinuma
Created June 11, 2013 08:41
Show Gist options
  • Save Twinuma/5755362 to your computer and use it in GitHub Desktop.
Save Twinuma/5755362 to your computer and use it in GitHub Desktop.
HTMLでファイル参照時のファイルタイプ指定方法
画像ファイルの場合
<input type="file" accept="image/jpeg,image/png">
CSVファイルの場合
<input type="file" accept="text/comma-sparated-value">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment