As you see in the screenshot. I choose a file, leave the pop up without refreshing the page and open it again, and the file input still has the file I picked.
<input id="fileuploadbannermobile" type="file" name="files[]">
I try this when the pop up opened.
$("#fileuploadbannermobile").val('');
But it doesn't seem to solve the issue.