Upload failed to Arduino Mega 2560 via Bluetooth

srinadhpotnuru:
After trying to upload sketch to Arduino Mega from HC-05 as shown at this link (https://www.instructables.com/id/Program-an-Arduino-Wireless-Over-Bluetooth/) the upload keeps failing. But the same circuit works fine with Arduino Uno. Can anyone point me in the correct direction or identify the fault.
Bluetooth Module used - HC-05
Upload speed of board selected as 57600bps and Bluetooth module's baud rate set as 57600bps

I am using the circuit from https://makezine.com/projects/diy-arduino-bluetooth-programming-shield/ STEP 8.
It works well for me with HC-05 and Arduino Mega.
In addition I've added a diode between HC-05 tx and resistor. Katode to HC-05. With that diode I can upload both ways : wireless and usb. It works on 115200bps