0.1.8 • Published 3 years ago

improved-file-input v0.1.8

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

improved-file-input

npm (scoped) npm bundle size

A simple file input library to expand the functionality of the HTML5 file input.

Install

$ npm install improved-file-input

Usage

const ifi = require('improved-file-input');
const attachments = document.querySelector('input[name="attachments"]');
const fileInput = new ifi(attachments, 5);

document.getElementById('demoForm').addEventListener('submit', (e) => {
  e.preventDefault();

  console.log('fileInput.files:', fileInput.files);
  //=> 'fileInput.files:' (2) [File, File]
});
0.1.8

3 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago