How can I let an uploaded file overwrite an existing file that has the same name?

I was able to comment out the code in the upload processor file that creates a unique filename for the uploaded file, but I get a server error if that file name already exists.

I want to keep it really simple so the files can be named ID1.jpg, ID2.jpg etc.