I have form where the user can upload a file but I want the upload button to be disabled if the input type file does not contain a file how do I do that ?
<form action="/upload" method="post" enctype="multipart/form-data">
<div class="form-inline">
<div class="form-group">
<input type="file" name="fileUploaded">
</div>
<button type="submit" class="btn btn-sm btn-primary">Upload file</button>
</div>
</form>