Trap upload errors