Can't upload code, keeps uploading

You removed a crucial piece of information with your edit, the board that you are using.

Assuming the problem is still with an Uno, which TTL-to-USB converter chip is on your board? If it's a 16U2, have you tried the Loop-Back Test Instructions as a troubleshooting step?