rename upload() to flush()