JSFiddle - React, Tailwind, and code Playground

HTML

<input type='file' id='user_profile_pic' >
<hr>
http://www.dotnettips.info/

JavaScript

$("#user_profile_pic").on("change", function(){
   var file = this.files[0],
       fileName = file.name,
       fileSize = file.size;
   alert("Uploading: "+fileName+" @ "+fileSize+"bytes");
});