Download Context Menu

I am building a JLab 3.0 extension. The code snippet below downloads Python, txt, JPEG files as expected, but it downloads PNG, SVG, and other more uncommon files as “JSON”. Does anyone know how to fix this and why this happens?
downloadQuestion

When I say “as json” iI mean image.png gets downloaded as image.json