JSFiddle - React, Tailwind, and code Playground

HTML

<input type="file" multiple="multiple" name="uploadedfile[]" />



<div id="test"></div>

CSS

#test {position: absolute; top: 50px; height: 70px; width: 400px; background:yellow;}

JavaScript

$('input[type="file"]').change(function(){
        var file = this.files[0];
        $("#test").append('Filename : ' + file.name + '<br />Filesize : ' + file.size);
});