varname typo fix
properly fetch upload errors