handle some additional cases on bad file uploads