For security reasons, you aren't able to modify the selected file in a file input field.
There is a workaround to reset it - you can clone the file input, and replace the input with the cloned input. It may be easier in your situation to just show / hide the inputs based on the user's selection.
For example, you can have a set of radio buttons for the user to select the input method - then show the appropriate field depending on what radio button they select.
If you absolutely must reset the file input, you can either use jQuery's .clone()
method, or manually create a new dom element, copy over all properties, insert it after the original file input, then remove the original.