I have an ItemUpdated event receiver in a document library in SharePoint 2010.
When I try to upload a document with a name that already exists in my library I get an error message "The specified name is already in use". That is fine.
But the ItemUpdated event is fired anyway and I don't want my code to run if no document was added. Does anyone know how to work around this?