file upload: solve judgement part