JSFiddle - React, Tailwind, and code Playground
HTML
<input id="fileupload" type="file" name="cutsheet" data-url="ws/cutsheet/representation">
JavaScript
$('#fileupload').change(function(e) {
var input = $(this).val();
var pieces = input.split('\\');
alert(pieces[pieces.length -1]);
});