fix bug upload twice

Hi,

I had to add to the click function some code to be able to upload file twice. Before that the 'change' event was trigger only once.