I coded an event receiver that renames for example a .txt file to a .text file (it does not matter the extensions, it is just an example). In my code what I do is to an SPFile.MoveTo operation. It works fine in SP2010 but when I execute the same code in SP 2013, when the operation is done using IE I get the text "Sorry, something went wrong" and then "File Not Found".
It's clear that the Sharepoint upload code tries to do things with the original name and it does not realize that it was renamed.
Can I do something from my event receiver code like using the AfterProperties to bypass this error?
Thanks