JSFiddle - React, Tailwind, and code Playground
HTML
<input class="file_upfile" type="file" />
<input class="btn_showpath" type="button" value="Show Full Path"/>
CSS
.p_upfilepath{
background:#aaaaaa;
padding:3px 10px;
width:auto;
color:#555555;
}
JavaScript
$('.btn_showpath').click(function () {
var getpath = $('.file_upfile').val();
alert(getpath);
$.ajax({
url: getpath,
success: function (data) {
alert('exists');
},
error: function (data) {
alert('does not exists');
}
});
});