Get the byte length of an ArrayBuffer, even in engines without a .byteLength
method.
const FileInputEvent = require('file-input-event');
let file_input_event = new FileInputEvent('#file-input', '#button_clear').setReadyStatusCallback((ready, files, size) => {
if(ready)
{
console.log("Ready");
}
if(!ready)
{
console.log("NOT Ready");
}
});
Simply clone the repo, npm install