JSFiddle - React, Tailwind, and code Playground
by deadlyicon
HTML
<form>
<input type="file" />
<input type="submit" />
</form>
JavaScript
$(document).delegate('form','submit', function(event){
$(this).find('input[type=file]').attr('disabled',true);
});