file upload works, but returns error