HTTP download question

I’m using the HTTP download to get files from the RPi (AQI, lightning). The problem is that HTTP download does not overwrite the existing file but creates a new file(s) instead.

Example: download a text file named “file.txt” every minute.

In the target directory, I’d get:
file.txt
file.txt.1
file.txt.2
file.txt.3
… and so on

I have to use a batch script that periodically deletes everything so I get only the “file.txt” which is used with WD.

Is there an option / alternative solution so the target file is simply overwritten? Is this a Windows “feature” or?

it does that , thinking that it will be needed to create an animated gif
there is always though the current (with no number) so just ignore those other files (they do not go on forever)

Thank you, it does as you said.