improve file upload matching