<input type="file" ... onchange="tuaFunzione()">

ciao