JSFiddle - React, Tailwind, and code Playground

HTML

<input type="file" id="upload" name="upload" />

JavaScript

$(document).ready(function() {
    alert($("input").removeAttr("id").attr("name"));
});