fixed upload file extension missing bug