catch errors from piping during file upload