Talewright Docs Open the app

Why must a replacement be of the same type as the file?

Because of the public link. It keeps its address and its name, so it must keep serving the same kind of file.