fix error category

fix error category while upload fail due to file type unknown