error: espcomm_upload_mem failed ESP8266 ERROR

why do you have RX from Uno on voltage divider? you need to reduce the voltage of transmit from Uno.

swap wires of RX/TX on Uno side, because you have TX to TX and RX to RX connected between uno and esp