Created
September 26, 2016 17:18
-
-
Save rajankur/3134a42c24cb356a3a091700f27b05b4 to your computer and use it in GitHub Desktop.
Valid Accept types for HTML input tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Specifying multiple formats --> | |
<input type="file" accept=".csv, .txt" /> | |
<!-- For CSV --> | |
<input type="file" accept=".csv" /> | |
<!-- For Excel 97-2003 --> | |
<input type="file" accept="application/vnd.ms-excel" /> | |
<!-- For Excel 2007+ --> | |
<input type="file" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" /> | |
<!-- For .txt --> | |
<input type="file" accept="text/plain" /> | |
<!-- For images --> | |
<input type="file" accept="image/*" /> | |
<!-- For HTML files --> | |
<input type="file" accept="text/html" /> | |
<!-- For Video files --> | |
<input type="file" accept="video/*" /> | |
<!-- For Audio files --> | |
<input type="file" accept="audio/*" /> | |
<!-- For .pdf --> | |
<input type="file" accept=".pdf" /> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you!