fixes file upload recognition