log upload errors in upload callback