<!DOCTYPE html>
<html>
<body>
Get Image: <input type="file" id="myFile">
<p>Click the button below to disable the FileUpload button above.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
document.getElementById("myFile").disabled = true;
}
</script>
</body>
</html>