JSFiddle - React, Tailwind, and code Playground

by Alex Alex

HTML

<input type=file>

JavaScript

$(':file').on('change',function () {
    var file = this.files[0];
    alert(file.lastModifiedDate);
    delete this.files
});