JSFiddle - React, Tailwind, and code Playground
HTML
<input type="file">
JavaScript
$('input[type=file]').change(function () {
alert(this.files[0].mozFullPath);
});
<input type="file">
$('input[type=file]').change(function () {
alert(this.files[0].mozFullPath);
});