If you upload a new torrent file with the name mandelbrot_2048x2048.png.torrent
and then you download it by clicking on the download button:

The file name will be: mandelbrot.torrent
when you save it on disk. It does not use the original torrent name included in the content-disposition
header.

The record in the database:

It's using the torrent title. I think it's a frontend issue because the backend adds the content-disposition
header with the filename
.
It seems there are different ways and priorities to define the filename:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a