I have a standard document library. I want to prompt the user if file name already exists in document library. I want this Friendly Error (with custom error text) on "Upload Document" form when when user clicks 'OK' button. I don't want to show default SharePoint Error page.
You can write a List Item Receiver (Synchronous).