uploaded file extension bug fix