Use non deprecated way to add listener
Use portable way to create temp dir.
Replace deprecated addListener calls with addClickListener
Fire valueChangeEvent also when file is deleted after upload.