Fix bug when check whether is file upload