New datatype in galaxy but default file extension when download

I successfully added a new datatype to galaxy named zipnobam. I did this to restrict the input/output of a set of tools. When I download this output file the file will get the extension .zipnobam.

Is it possible to have the datatype zipnobam inside galaxy but when I download the file it will have the .zip extension?


I can also do something like which will end in but I would still prefer if possible.


I solved it (for now) by adding the following code in galaxy/lib/galaxy/datatypes/ under def _download_filename

if to_ext == "":
    to_ext = "zip"

Of course if there is a better solution let me know :slightly_smiling_face: