Skip to content

Instantly share code, notes, and snippets.

@vasilii-b
Created February 27, 2019 07:16
Show Gist options
  • Save vasilii-b/076285d6fbd3f427518fb9969f95d553 to your computer and use it in GitHub Desktop.
Save vasilii-b/076285d6fbd3f427518fb9969f95d553 to your computer and use it in GitHub Desktop.
HTML attribute that prevents users from uploading files from not allowed list of extensions
<!-- (IE 10+, Edge, Chrome, Firefox 42+) -->
<input type="file" accept=".xls,.xlsx" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment