[fileupload] modified 'cancel all' & improved code