edit less code of upLoadButton