If you specify value = '' , then it does not clear in ie 10 and below.

If you wrap the input in a form, call its reset() method, and then return the input to its place, this also does not clear the input . Outwardly, it seems that it is cleaned, but the FileList remains the same filled with files.

    2 answers 2

    So should help

     $('#file').replaceWith($('#file').clone()); 
    • You do not clean it, but replace it with a new one) - Maxmaxmaximus

    Here is the solution from Maxmaxmaximus:

     input.type = '' // временно меняем тип input input.type = 'file' // возвращаем тип input 

    PS This is $('#file').replaceWith($('#file').clone()); it does not clean the inpat, but replaces it with a new one.