Interesting. For me, it is actually “replacing” the existing file, but it’s keeping the old file name. So if I first upload “a.txt”, with the title “Staff Schedule”, and then I upload “b.xlsx”, with the title “New Staff Schedule”, and select “Replace Staff Schedule”, then I get a single file, with the title “New Staff Schedule”, pointing to a file with filename “a.txt”, but with the contents of “b.xlsx”. That obviously is a problem, since changing the filename is likely to be confusing, and changing the extension is downright broken.
Is that what you’re seeing as well? If so, I believe I can fix this by just using the filename for the new file, instead of the old one - I just want to make sure that you aren’t seeing some other different behavior.