If i open a file select, select a file, then click file select again and then click cancel, it forgets the originally selected file
//Main input
<input type="file" class="input" id="input" name="avatar">
//Backup input
<input type="file" class="input_two" id="input_two" name="avatar_two">
Is there a workaround for this, possibly creating a temporary input class and copying the .files over to this one so that i can still have access to the last file
$('.input').change(function () {
var value = this.files;
console.log(value);
if(value.length > 0)
{
$(.avatar_two).assign(value)... //This is what i want to do
}
else
{
console.log("nada");
}
is this possible?