An elegant solution to make it possible
However, here is an elegant way I found to get the goal:
var $el = $('#file-to-upload');
Brief explanation: wrap the input control in a on-the-fly-created <form> and use its reset() method to reset the form which contains the file input. Then remove the form by using unwrap() method.
You can find a working example on my codePen Profile.