Have flush() check upload response