remove (comment out) old code to fix replacing of files

There is a issue when uploading a file with a name that already exists.

Expected behavior: file should be replaced after selecting replace
Actual behavior: the file is not shown after uploading, but after a reload the file is shown as filename (2) in the list, even tough I wanted to replace the file.

Fix replacing files by removing old code

please review @DeepDiver1975 @butonic