fixed bug where files with uppercase extensions could not be uploaded