fix upload file extenstion bug