minor bug fix for file upload extension detection