file-input

A customizable replacement for native file inputs.


License
ISC
Install
npm install file-input@3.0.1

Documentation

file-input-js

A better file input

API

FileInput()

Creates and returns a new HTMLButtonElement, modified to mimic a native file input in the following ways.

  • File input via click-and-select
  • File input via drag-and-drop
  • .files
  • .multiple
  • .accept
  • change event

Setup

Install: npm install file-input

Import: const FileInput = require('file-input');